Card Components

Comprehensive card library with variants, states, and interactive examples

10 Card TypesInteractiveResponsive

Interactive Demo

Click any card below to interact

Clicks: 0

Clickable Card

Click me to increment the counter

Outline Card

Another clickable card variant

Compact Card

Smaller but still interactive

Card Variants

Basic Card

Clean white card with shadow and hover effects

Basic Card

Clean white card with shadow and hover effects

General content, forms, information

Outline Card

Border-focused design with subtle background

Outline Card

Border-focused design with subtle background

Secondary content, subtle emphasis

Compact Card

Smaller padding for dense layouts

Compact Card

Smaller padding for dense layouts

Lists, grids, tight spaces

Gradient Card

Beautiful gradient backgrounds

Gradient Card

Beautiful gradient backgrounds

Hero sections, featured content

Glass Card

Glassmorphism effect with backdrop blur

Glass Card

Glassmorphism effect with backdrop blur

Overlays, modern aesthetics

Glass Card Effect

Glassmorphism with backdrop blur works beautifully over gradients and images.

Specialized Card Types

Feature Cards

Fast Performance

Lightning-fast load times with optimized code and edge computing.

AI-Powered

Intelligent automation and smart recommendations for your workflow.

Analytics

Comprehensive insights and data visualization for better decisions.

Statistics Cards

Revenue

$45,231

+12.5%

Projects

24

+3 this week

Success Rate

89%

Stable

Response Time

2.4h

-15%

Action Cards

Create Project

Start building something amazing with our tools.

View Analytics

See detailed insights about your performance.

Upgrade Plan

Unlock premium features and advanced tools.

Image Cards

Coding workspace
Popular

Web Development

Full-stack development with modern frameworks.

Analytics dashboard
Trending

Data Analytics

Transform data into actionable insights.

Business strategy
New

Business Strategy

Strategic planning and execution for growth.

Team
Hot

Join Our Team

We're hiring talented developers

Card Properties & States

Loading States

Loading State

Click to see loading animation (2s)

Always Loading

This card is always in loading state

Disabled

This card is disabled and not interactive

Selection States

Card 1

Click to select this card

Card 2

Click to select this card

Card 3

Click to select this card

Styling Variants

Small

padding="sm" shadow="sm"

Medium

padding="md" shadow="md"

Large

padding="lg" shadow="lg"

Extra Large

padding="lg" shadow="xl"

Border Radius Variants

Small

rounded="sm"

Medium

rounded="md"

Large

rounded="lg"

Extra Large

rounded="xl"

Advanced Card Composition

Project Dashboard

Active
Completion75%

3 of 4 milestones completed

ReactTypeScriptIn Progress

Premium Plan

$29/month
Everything you need to succeed
  • Unlimited projects
  • Advanced analytics
  • Priority support
  • AI-powered insights

Code Examples

Basic Card Usage
import { BasicCard, CardTitle, CardContent } from '~/components/ui';

function MyComponent() {
  return (
    <BasicCard>
      <CardTitle>Card Title</CardTitle>
      <CardContent>
        This is the card content with some descriptive text.
      </CardContent>
    </BasicCard>
  );
}

Basic card structure with title and content

Feature Card
import { FeatureCard } from '~/components/ui';
import { FaRocket } from 'react-icons/fa';

function Features() {
  return (
    <FeatureCard
      icon={<FaRocket />}
      title="Fast Performance"
      description="Lightning-fast load times with optimized code."
    />
  );
}

Feature cards with icons for marketing/product pages

Stat Card with Trends
import { StatCard } from '~/components/ui';

function Dashboard() {
  return (
    <StatCard
      label="Revenue"
      value="$45,231"
      trend="up"
      trendValue="+12.5% from last month"
      icon={<FaDollarSign />}
      variant="success"
    />
  );
}

Statistics cards with trend indicators and icons

Interactive Action Card
import { ActionCard } from '~/components/ui';

function Actions() {
  return (
    <ActionCard
      title="Create Project"
      description="Start building something amazing"
      actionLabel="Get Started"
      onAction={() => console.log('Action triggered')}
      icon={<FaRocket />}
    />
  );
}

Action cards with call-to-action buttons

Best Practices

✅ Do's

  • Use BasicCard for most content and information
  • Reserve GradientCard for hero sections and featured content
  • Include proper CardTitle and CardContent structure
  • Use CardHeader and CardFooter for complex layouts
  • Consider loading states for async content

❌ Don'ts

  • Don't mix too many card variants on the same page
  • Avoid using GlassCard without proper background context
  • Don't overload cards with too much information
  • Avoid disabled cards unless there's a clear reason
  • Don't use cards for navigation - use proper nav components