Skip to content

Early previewhamur is not on npm yet. The components are being built in the open, follow along on GitHub.

UIComponentsReact

Card

A bordered box that groups a header, content and actions.

Rendered by React 19.3.1

card.tsx

Installation

npx shadcn@4.23.0 add https://hamur.dev/r/react/card.json

It 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.

Its preview and code are at the top of the page.

API reference

Card wraps no headless component of its own: its parts are elements with classes, and their props are the element's.