Library navigation

Your workspace

Everything you need in one place.

3 members

Card

A flexible content card with a title, description, body, and footer.

Installation

bunx shadcn@latest add https://ui.razeev.com/r/card.json

Usage

tsx
import { Card } from "@/components/hangry-ui/components/card";
<Card title="New project" description="Start with a blank canvas."><p>Your content here.</p></Card>

Props

PropTypeDefaultDescription
titlestring"Room for your next idea"Heading; use an empty string to hide it.
descriptionstring"A simple starting point for something great. Make it yours."Supporting text; use an empty string to hide it.
childrenReactNode—Card body content.
footerReactNode—Content below the body, separated by a border.
classNamestring""Additional CSS classes on the component root.
Native propsComponentProps<"article">—Forwards native article attributes, aria-* attributes, and event handlers.

Setup notes

Use Tailwind CSS v4. Borders use the global border-border token. No rounded classes or additional packages are required. Customize content with props and styling with className.