Card

Composable surface with hairline ring and layered shadow; default, raised, glass and outline variants.

Installation

Install with the shadcn CLI:

npx shadcn@latest add https://www.framekitui.live/r/card.json

Or, with the @framekit namespace registered: npx shadcn@latest add @framekit/card. You can also copy the source into components/ui/card.tsx (view on GitHub).

Usage

import { Card } from '@/components/ui/card'

Props

Component props
PropTypeDefaultNotes
variant'default' | 'raised' | 'glass' | 'outline''default'Surface treatment.
interactivebooleanfalseHover lift and focus-within ring for clickable cards.
CardHeader / CardTitle / CardDescription / CardContent / CardFooterHTMLAttributes—Composable slots.
  • Input

    Accessible text field with focus ring.

  • Badge

    Compact status and label chips.

  • Textarea

    Multi-line text input.

  • Button

    Versatile button with variants and sizes.

  • Switch

    Plain animated boolean switch.

  • Avatar Stack

    Overlapping avatars that make room: hover or focus one and it lifts while neighbours part on a spring, revealing a frosted name tag with role and presence. The “+N” chip opens a tidy list of…

See all 18 Core components