Content containers with headers, actions, and flexible layouts for organizing information.
npx shadcn@latest add @preskok/cardimport { Button } from "@/components/ui/preskok-ui/button"
import {
Card,
CardAction,
CardContent,
CardDescription,
CardFooter,
CardHeader,
CardTitle,
} from "@/components/ui/preskok-ui/card"
export function CardDemo() {
return (
<Card>
<CardHeader>
<CardTitle>Card Title</CardTitle>
<CardDescription>Card description goes here</CardDescription>
</CardHeader>
<CardContent>
<p>Card content goes here.</p>
</CardContent>
<CardFooter>
<Button>Action</Button>
</CardFooter>
</Card>
)
}The root card container.
| Prop | Type | Default | Description |
|---|---|---|---|
className | string | - | Additional CSS classes |
Card header section with optional title and description.
| Prop | Type | Default | Description |
|---|---|---|---|
title | string | - | Header title |
description | string | - | Header description |
className | string | - | Additional CSS classes |
Standalone card title component.
| Prop | Type | Default | Description |
|---|---|---|---|
className | string | - | Additional CSS classes |
Standalone card description component.
| Prop | Type | Default | Description |
|---|---|---|---|
className | string | - | Additional CSS classes |
Card action area, typically placed in the header.
| Prop | Type | Default | Description |
|---|---|---|---|
className | string | - | Additional CSS classes |
Main content area of the card.
| Prop | Type | Default | Description |
|---|---|---|---|
className | string | - | Additional CSS classes |
Card footer section for actions or additional content.
| Prop | Type | Default | Description |
|---|---|---|---|
className | string | - | Additional CSS classes |