Sarah Johnson
MRN: 2024-001234
Layout
A world-class container component with multiple variants and semantic element support. Designed for grouping related healthcare content like patient information and clinical records.
Choose the appropriate variant based on content importance and visual hierarchy.
Standard card for general content.
Primary background for emphasis.
Transparent with border emphasis.
Frosted glass effect for modern UIs.
Left border accent for status indication.
Use accent variant with semantic colors to indicate status in healthcare workflows.
Insurance eligibility confirmed for services.
Prior authorization awaiting approval.
Missing documentation for claim submission.
Use slots for structured card layouts like patient records.
MRN: 2024-001234
Use for clickable items like selecting patients or appointments. Includes keyboard navigation support.
Cardiology • Available Today
Family Medicine • Next: Mon 2pm
Adjust padding based on content density and card purpose.
none
sm
md
lg
xl
Use semantic HTML elements for better accessibility and SEO.
as="div"
Default generic container.
as="article"
Self-contained content like patient profiles.
as="section"
Thematic groupings of content.
| Prop | Type | Default | Description |
|---|---|---|---|
variant | 'default' | 'elevated' | 'outlined' | 'glass' | 'accent' | 'default' | Visual style variant |
padding | 'none' | 'sm' | 'md' | 'lg' | 'xl' | 'md' | Internal padding |
accentColor | 'primary' | 'success' | 'warning' | 'error' | 'info' | 'primary' | Accent color for accent variant |
interactive | boolean | false | Enables hover effects and keyboard navigation |
asButton | boolean | false | Renders as button element |
as | 'div' | 'article' | 'section' | 'div' | Semantic HTML element |
id | string | — | Optional ID for the card |
ariaLabelledby | string | — | ID of labelling element for accessibility |
header | Snippet | — | Header slot content |
footer | Snippet | — | Footer slot content |
onclick | (event) => void | — | Click handler |
as="article" for self-contained patient records.ariaLabelledby to link cards to their titles for screen readers.as prop to render appropriate elements.role="button" and tabindex="0".prefers-reduced-motion preference.