Project folder
A folder card that opens to show its contents.
When to use
- Browsing projects.
When not to use
- Plain lists.
Installation
terminal
pnpm dlx shadcn@latest add @caliper/project-folder
Adds its 2 files to components/ui/, each with its own stylesheet, and installs their packages. Pro installs with your access token, set up once per project. See Pro access. The first part also adds Caliper UI’s tokens; import them once as in Installation.
API reference
ProjectFolder
8 props
PropTypeDefaultDescription
name *string—
count *number—How many items the project holds.
previewreadonly string[][]Titles of a few items, shown as papers peeking out.
tone1 | 2 | 3 | 4 | 5 | 61Which chart color tints the folder, 1 to 6.
hrefstring—
onOpen(() => void)—
metaReactNode—Small text under the name, such as "Edited 2 days ago".
classNamestring—
Keyboard
- No custom key handling; Tab and the native activation keys do the work.
Accessibility
It is built on native elements and keeps aria-hidden in step with state.
Notes for AI
Give your coding assistant this page as Markdown instead of screenshots: the props, keyboard and examples in one file.
/docs/components/project-folder.mdThe index of every part is at /llms.txt.