Card

A set of modular card components including Header, Title, Description, Content, and Footer. Designed for maximum flexibility, allowing you to compose complex layouts with a clean, consistent aesthetic.

layout

Installation

$npx futureuikit add card

Import

import { Card } from "@/components/ui/card"
Layout Variant
Color Theme
Style
Theme
Shape
Spacing
Shadow

Named Keys & Props

Pass these exact named keys as props on <Card />. Click any color pill to copy the prop.

colorDefault is "default"(Black & White)
variantVisual style
"solid""outline""ghost""link"
themeSurface theme
"default""modern""clean""futuristic""brutal""halftone"
shapeCorner shape
"default""square""rounded""sharp"
spacingInner spacing
"default""2x""4x""6x""8x"
sizeComponent size
"sm""md""lg"

Usage Example

A basic implementation example to get you started.

Example Implementation
import {
 Card,
 CardContent,
 CardDescription,
 CardFooter,
 CardHeader,
 CardTitle,
} from"@/components/ui/card";

export default function Example() {
 return (
 <Card className="w-87.5">
 <CardHeader>
 <CardTitle>Create project</CardTitle>
 <CardDescription>Deploy your new project in one-click.</CardDescription>
 </CardHeader>
 <CardContent>
 <p>Card Content goes here.</p>
 </CardContent>
 <CardFooter className="flex justify-between">
 <button>Cancel</button>
 <button>Deploy</button>
 </CardFooter>
 </Card>
 );
}

Features

Key capabilities and highlights.

Key Capabilities
  • ◆Modular design: Card, CardHeader, CardTitle, CardDescription, CardContent, and CardFooter.
  • ◆Clean, minimalist aesthetic with subtle borders and shadows.
  • ◆Highly flexible composition for diverse content types.
  • ◆Fully responsive and easy to style with Tailwind CSS.
  • ◆Standardizes information containers across your application.

Notes

Important implementation details to consider.

Implementation Details
  • ◆Install: Run'npx futureuikit add card'.
  • ◆Import:'import { Card, CardHeader, CardTitle, CardDescription, CardContent, CardFooter } from "@/components/ui/card";'
  • ◆Composition: Use the sub-components to build your layout; only the main'Card'wrapper is required.
  • ◆Styling: Apply Tailwind utility classes to the'Card'component to control sizing and alignment.
  • ◆Flexibility: Any component can be placed inside'CardContent'or'CardFooter'for rich interactive cards.