Card

A container with optional header, body, and footer. Use interactive for clickable cards.

Deploy status

frosty-mountain-1234

Last deploy: 2 hours ago

Import

import { Card, CardHeader, CardBody, CardFooter } from '@aspect/react';

Compound components

| Part | Purpose | | ------------ | -------------------------------------- | | Card | Container | | CardHeader | Title + description with bottom border | | CardBody | Main content area | | CardFooter | Actions area with top border |

Interactive

<Card interactive>
  <CardHeader title="Click me" />
</Card>

Props

| Prop | Type | Default | Description | | ------------- | --------- | ------- | -------------------------------- | | interactive | boolean | false | Hover effect for clickable cards |

CardHeader accepts title and description props.

Guidelines

Do:

Don't: