Components
Card
One idea in a box: a title, a line about it, content and actions.
Preview
Installation
It's already in this Base. In another project, add it with the shadcn CLI, then switch its cn import to @/lib/utils, its icons to @/components/icons, and its text-sm and text-xs to text-ui-s and text-ui-xs.
npx shadcn@latest add cardExamples
Header, content, footer
Loading
Skeletons in the shape of the content.
Guidelines
Use it
- Items in a grid you compare or pick from.
- A skeleton inside it while it loads.
Don't
- Put cards inside cards.
- Wrap ruled lists in cards: use rows.
Used in
The screens in this Base that show it, found in the code.
- Contracts & invoices
- Home
- Prototypes hub
- Slides