Skip to content
Browse docs and components

Card

card

A bordered surface with a header, title, description, content and footer you compose yourself, so a card is never more structure than the content inside it needs. Everything reads from the foundation tokens, which makes it retheme with the rest of the library.

Responsive

Install

$npxshadcnadd@forme/card

Adds the component, its registry dependencies, and the token stylesheet you import once.

API reference

Read from the source, so it is the API of the file you install. A prop marked * is required.

Parts

  • CardTakes <div> attributes
  • CardHeaderTakes <div> attributes
  • CardTitleTakes <h3> attributes
  • CardDescriptionTakes <p> attributes
  • CardContentTakes <div> attributes
  • CardFooterTakes <div> attributes