@brik-blink/card
v0.1.2
Published
A reusable card component for React applications
Downloads
6
Readme
@brik/card
A modern, accessible card component built with React and Tailwind CSS.
Installation
npm install @brik/cardUsage
import { Card, CardHeader, CardTitle, CardDescription, CardContent, CardFooter } from '@brik/card'
export default function MyComponent() {
return (
<Card>
<CardHeader>
<CardTitle>Card Title</CardTitle>
<CardDescription>Card Description</CardDescription>
</CardHeader>
<CardContent>
<p>Card Content</p>
</CardContent>
<CardFooter>
<p>Card Footer</p>
</CardFooter>
</Card>
)
}Components
Card: The main card containerCardHeader: Header section of the cardCardTitle: Title of the cardCardDescription: Description text for the cardCardContent: Main content area of the cardCardFooter: Footer section of the card
Props
Card Props
| Prop | Type | Default | Description | |------|------|---------|-------------| | variant | 'default' | 'outline' | 'ghost' | 'default' | The visual style of the card |
License
MIT
