Basic Card

A modern, highly flexible card component with multiple variants and built-in animations. Designed to be clean and minimal, it avoids heavy shadows in favor of subtle borders and glassmorphism. Perfect for profiles, feature blocks, and data display.

layoutclass-variance-authority

Installation

$npx futureuikit add basic-card

Import

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

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
"default""elevated""interactive""feature""stats""content""compact""media"
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, CardHeader, CardTitle, CardDescription, CardContent } from "@/components/ui/basic-card";

export default function Example() {
  return (
    <Card variant="elevated" color="indigo">
      <CardHeader>
        <CardTitle>Aryan Hooda</CardTitle>
        <CardDescription>Full Stack Developer</CardDescription>
      </CardHeader>
      <CardContent>
        <p className="text-sm text-muted-foreground">Building clean interfaces with Future UI.</p>
      </CardContent>
    </Card>
  );
}

Features

Key capabilities and highlights.

Key Capabilities
  • ◆Built with Framer Motion for smooth entry and hover animations.
  • ◆Supports Modern (Glass), Clean (Solid), and Minimal (Outline) variants.
  • ◆Fully customizable color scheme for icons and primary actions.
  • ◆Minimalist design without heavy shadows for a clean look.
  • ◆Responsive layout that adapts to any container.
  • ◆Easily configurable stats and call-to-action buttons.

Notes

Important implementation details to consider.

Implementation Details
  • ◆Install: Run'npx futureuikit add basic-card'to download.
  • ◆Import: 'import { Card, CardHeader, CardTitle, CardDescription, CardContent } from "@/components/ui/basic-card";'
  • ◆Variants: Choose 'default', 'elevated', 'interactive', 'feature', 'stats', 'content', 'compact', or 'media'.
  • ◆Colors: Pass any of the 10 named color keys ('default', 'blue', 'emerald', 'rose', 'amber', 'violet', 'indigo', 'sky', 'slate', 'orange') via 'color'.
  • ◆Data: Pass'name','title', and optionally'stats'(array of {label, value}) to populate the card.
  • ◆Actions: Use'onPrimaryClick'and'onSecondaryClick'props to handle user interactions.