Card

A flexible container component for grouping related content.

tsx
import { 
    Card, 
    CardHeader, 
    CardTitle, 
    CardDescription, 
    CardContent, 
    CardFooter 
} from '@xdev-asia/x-ui-react';

Basic Usage

Default Card

Card Title

Card description goes here

Your content here

With Footer

Card with Actions

Subscription

Manage your subscription

You are on the Pro plan.

Variants

Elevated (Default)

Elevated Card

With shadow effect

Outlined

Outlined Card

With border

Filled

Filled Card

With muted background

Glass

Glass Card

With backdrop blur

Interactive Cards

Interactive & Selected

Hover me!

Nice hover effect

Selected

With ring effect

API Reference

PropTypeDefault
variant'elevated' | 'outlined' | 'filled' | 'glass''elevated'
padding'none' | 'sm' | 'md' | 'lg''md'
isInteractivebooleanfalse
isSelectedbooleanfalse
childrenReactNode-

Compound Components

  • CardHeaderContainer for title and description
  • CardTitleCard title
  • CardDescriptionSubtitle / description
  • CardContentMain content
  • CardFooterFooter with actions