Foundation ComponentReact 18 & 19Zero Runtime CSS
Card
A composable surface. Arrange the content around your application.
Interactive preview
A place for your idea.
Compose a surface from simple parts.
Usage
import { Card, CardHeader, CardTitle, CardContent } from "@devvy-ui/react";
<Card>
<CardHeader><CardTitle>Project</CardTitle></CardHeader>
<CardContent>Your next idea.</CardContent>
</Card>API reference
Native HTML attributes, className, style and a forwarded ref are supported. Component-specific props:
| Prop | Type | Default | Description |
|---|---|---|---|
| children | ReactNode | — | Compose CardHeader, CardTitle, CardDescription, CardContent and CardFooter. |
| className | string | — | Extend the surface with ordinary CSS. |
Accessibility & behavior
Platform Behavior & Guidelines
CardTitle renders h3. Choose a surrounding h2 section or use your own heading inside the card to preserve document hierarchy.
Source ownership
Add the audited implementation directly into your repository with the CLI:
node /path/to/devvy-ui/packages/cli/src/cli.mjs add cardMake the source yours.
Start from the canonical implementation used by the package and registry. Change the code, keep the MIT notice, and build the behavior your project needs.
Card.tsxREACT / TSX
Edit your own copy. Downloaded source uses your changes; the component preview above uses the shipped version. Run the source installer first to include shared helpers.