UIComponentsReact
A bordered box that groups a header, content and actions.
Rendered by React 19.3.1
Installation
npx shadcn@4.23.0 add https://hamur.dev/r/react/card.jsonIt also adds utils. The app needs its setup first: Installation.
Usage
Card is markup only: CardHeader holds CardTitle, CardDescription and an optional CardAction placed at its top right, then CardContent and CardFooter follow. Pass size="sm" for tighter spacing.
import {
Card,
CardHeader,
CardFooter,
CardTitle,
CardAction,
CardDescription,
CardContent,
} from '@/components/ui/card'Examples
Default
A header with title and description, a line of content and a footer button.
API reference
Card wraps no headless component of its own: its parts are elements with classes, and their props are the element's.