Card
A flexible card component system that provides a foundation for displaying content in a structured format. Built with composable sub-components and context-aware styling.
Install Dependencies
npx quickcode-ui add Card
Default Usage
Default Card
Project Update
Latest progress on the dashboard redesign
We've completed the user research phase and are now moving into the design system creation. The team has identified key pain points and opportunities for improvement.
Interactive Card
Interactive Card
Amazing Product Launch
2 hours ago
Just launched our new feature that helps teams collaborate more effectively. The response from early users has been incredible!
ProductLaunch
Profile Card
Profile Card
Sarah Johnson
Senior Product Designer
Joined March 2023
San Francisco, CA
Passionate about creating user-centered designs that solve real problems. Love working with cross-functional teams to bring ideas to life.
Props
Card
Prop | Type | Default | Description |
---|---|---|---|
children | React.ReactNode | - | The content to display inside the card |
isInteractive | boolean | false | Whether the card should have hover effects |
className | string | - | Additional CSS classes for custom styling |
CardHeader
Prop | Type | Default | Description |
---|---|---|---|
children | React.ReactNode | - | The content to display in the card header |
className | string | - | Additional CSS classes for custom styling |
CardContent
Prop | Type | Default | Description |
---|---|---|---|
children | React.ReactNode | - | The main content to display in the card |
className | string | - | Additional CSS classes for custom styling |
CardFooter
Prop | Type | Default | Description |
---|---|---|---|
children | React.ReactNode | - | The content to display in the card footer |
className | string | - | Additional CSS classes for custom styling |
CardTitle
Prop | Type | Default | Description |
---|---|---|---|
children | React.ReactNode | - | The title text to display |
className | string | - | Additional CSS classes for custom styling |
CardDescription
Prop | Type | Default | Description |
---|---|---|---|
children | React.ReactNode | - | The description text to display |
className | string | - | Additional CSS classes for custom styling |
Features
- Composable Architecture: Mix and match sub-components to create the perfect card layout
- Context-Aware Styling: Shared context between components for consistent behavior
- Interactive States: Optional hover effects for clickable cards
- Flexible Content: Supports any content structure within card sections
- Responsive Design: Adapts beautifully to different screen sizes
- Dark Mode Ready: Built-in support for light and dark themes
- Accessibility Focused: Semantic HTML structure with proper focus management
Last updated on