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.jsonOr, 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
| Prop | Type | Default | Notes |
|---|---|---|---|
variant | 'default' | 'raised' | 'glass' | 'outline' | 'default' | Surface treatment. |
interactive | boolean | false | Hover lift and focus-within ring for clickable cards. |
CardHeader / CardTitle / CardDescription / CardContent / CardFooter | HTMLAttributes | — | Composable slots. |
Related Core components
- 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…