structyl

Card

stable

A container that groups related content and actions.

Basic usage

Create project

Deploy your new project in one click.

Project details go here.

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.

32 seats18 projects94% SLA

Features

  • Compound parts: Root, Header, Title, Description, Content, Footer.

Installation

bash
pnpm dlx structyl add card

API Reference

Card.Root

The outer card container.

PropTypeDefault
classNamestring

Additional Tailwind classes, merged with the component defaults.

Card.Header

Top section, holds Title and Description.

PropTypeDefault
classNamestring

Additional Tailwind classes, merged with the component defaults.

Card.Title

The card heading. Renders an h3.

PropTypeDefault
classNamestring

Additional Tailwind classes, merged with the component defaults.

Card.Description

Supporting text under the title.

PropTypeDefault
classNamestring

Additional Tailwind classes, merged with the component defaults.

Card.Content

The main body of the card.

PropTypeDefault
classNamestring

Additional Tailwind classes, merged with the component defaults.

Card.Footer

Bottom section, typically actions.

PropTypeDefault
classNamestring

Additional Tailwind classes, merged with the component defaults.

Card | structyl