Card

display

Container component with default, elevated, bordered, and interactive hover variants.

import { Card } from '@/components/forge'

Preview

Card

Default Card

Structured content container.

Interactive

Hover and tap feedback.

Code Example

Props

PropTypeDefaultRequiredDescription
variant'default' | 'elevated' | 'bordered' | 'interactive''default'NoVisual style variant
padding'sm' | 'md' | 'lg''md'NoInternal padding
childrenReact.ReactNode-YesCard content

Variants

defaultelevatedborderedinteractive

Accessibility

  • Interactive variant uses role="button" and keyboard handlers when onClick is provided
  • Focus ring applied via focus-visible

Related Components