AsterUIDocsv1.0.2

Docs / Component reference

Card

Keep an item's title, detail and next action together. The caller supplies the content for each part.

Card example

Install

sh
npx @fierst/ui@1.0.2 add card

Registry dependencies: theme.

Exports from ./ui/card: CardVariant, Card.

Download the registry source for card 1.0.2.

API contracts

ts
export type CardVariant = 'default' | 'elevated' | 'muted';

export function Card({
  variant = 'default',
  title,
  description,
  action,
  footer,
  class: extraClass,
  children,
  ...rest
}: {
  variant?: CardVariant;
  title?: string;
  description?: string;
  action?: View;
  footer?: View;
  class?: string;
  children?: View;
  [key: string]: any;
})