Card
stableA container that groups related content and actions.
Basic usage
Create project
Deploy your new project in one click.
Examples
With form
A card that wraps a form for collecting user input.
Team plan
Shared components, tokens, and docs in one workspace.
Product card
Compose header, description, content and footer for a complete application card.
Team plan
Usage this billing cycle across 32 seats.
Features
- Compound parts: Root, Header, Title, Description, Content, Footer.
Installation
pnpm dlx structyl add cardAPI Reference
Card.Root
The outer card container.
| Prop | Type | Default |
|---|---|---|
| className | stringAdditional Tailwind classes, merged with the component defaults. | — |
Card.Header
Top section, holds Title and Description.
| Prop | Type | Default |
|---|---|---|
| className | stringAdditional Tailwind classes, merged with the component defaults. | — |
Card.Title
The card heading. Renders an h3.
| Prop | Type | Default |
|---|---|---|
| className | stringAdditional Tailwind classes, merged with the component defaults. | — |
Card.Description
Supporting text under the title.
| Prop | Type | Default |
|---|---|---|
| className | stringAdditional Tailwind classes, merged with the component defaults. | — |
Card.Content
The main body of the card.
| Prop | Type | Default |
|---|---|---|
| className | stringAdditional Tailwind classes, merged with the component defaults. | — |
Card.Footer
Bottom section, typically actions.
| Prop | Type | Default |
|---|---|---|
| className | stringAdditional Tailwind classes, merged with the component defaults. | — |