DS0
Components

Card

A contained surface for grouping related information and actions.

Overview

Card is a contained surface that groups related information and actions. It provides a visual boundary around content, making it easy to scan and understand relationships between data.

Default

Card description text.

Main content area.

Footer

Outline

Card description text.

Main content area.

Footer

Elevated

Card description text.

Main content area.

Footer

Usage

  <Card>
    <Card.Header>
      <Card.Title>Card Title</Card.Title>
      <Card.Description>Card description.</Card.Description>
    </Card.Header>
    <Card.Content>Main content.</Card.Content>
  </Card>

export function Example() {
  return (
    <Card>
      <Card.Header>
        <Card.Title>Card Title</Card.Title>
        <Card.Description>Card description.</Card.Description>
      </Card.Header>
      <Card.Content>Main content.</Card.Content>
      <Card.Footer>Footer actions</Card.Footer>
    </Card>
  );
}

Variants

Default

Standard card with border and subtle shadow.

Outline

Border only, transparent background.

Ghost

No visual boundary — structural grouping only.

Elevated

Raised surface with medium shadow.

API Reference

Card (Root)

PropTypeDefaultDescription
variant'default' | 'outline' | 'ghost' | 'elevated''default'Visual style
padding'none' | 'sm' | 'md' | 'lg''none'Internal padding
asElementType'div'HTML element
  • Stack — When you just need spacing/layout without visual boundary

On this page