DsCard component is a Vercel-style fieldset/card for forms and settings. It features a content area with title and description, plus a footer with flexible slots for status text and action buttons.
Component Location
Props
| Prop | Type | Required | Description |
|---|---|---|---|
title | string | No | Card heading (hidden when not provided) |
Slots
| Slot | Description |
|---|---|
default | Main content area (description, forms, inputs, etc.) |
footer-status | Left side of footer (text, links, hints) |
footer-actions | Right side of footer (buttons, button groups) |
Basic Usage
Examples
Simple Card with Action
Card with Status Link
Card with Multiple Actions
Card Without Footer
Card with Only Status (No Actions)
Card Without Title
Use DsCard without a title when the content has its own heading or when wrapping existing components that manage their own titles.Styling
The component uses these key styles:- Container:
rounded-lg border border-neutral-200 bg-white - Content padding:
p-6 - Title:
text-xl font-medium leading-8 tracking-tight - Footer:
bg-neutral-50 border-t border-neutral-200 px-6 py-4 - Footer status:
text-sm text-muted-foreground
Visual Structure
Related Documentation
- Page Heading - Page title component
- UI Design System - Overall design patterns

