Card

A card container with media, header, title, description, content and footer slots. Supports variants, sizes and an interactive state; compose or use slots standalone.

Props

PropTypeDefaultDescription
variant'outlined' | 'elevated' | 'filled' | 'ghost''outlined'Visual style
size'sm' | 'md' | 'lg''md'Padding size
interactivebooleanfalseInteractive: lift on hover, focus ring on focus
Card.MediaHTMLAttributes<HTMLDivElement>—Full-bleed media area, aligned to the corners when placed first
Card.HeaderHTMLAttributes<HTMLDivElement>—Header with title/description on the left and Card.Action on the right
Card.ActionHTMLAttributes<HTMLDivElement>—Action area on the right of the header
Card.TitleHTMLAttributes<HTMLHeadingElement>—Title slot
Card.DescriptionHTMLAttributes<HTMLParagraphElement>—Description slot
Card.ContentHTMLAttributes<HTMLDivElement>—Free-form content area
Card.Footer{ align?: 'start' | 'end' | 'between' }'start'Footer, usually for actions; align controls alignment
...restHTMLAttributes—Remaining props are forwarded to the native div