Tree
For folders, categories or anything nested. Ticking a parent ticks its children, and a half-ticked box shows a partial pick.
- Component
- Light and dark
- Updated 5 months ago
Paste this into your agent.
Add pick items from a nested list, with whole branches at once to <the page you want it on>. Install it with: npx shadcn add @ollie/tree Pass points, rootName, searchPlaceholder, emptyLabel and selectedLabel in as props. Handle onSelectedChange yourself; don't fetch inside the component. Keep the ocean theme tokens.
More components
- Stat CardOne number that matters, with how it's moving.
- Kpi RowA strip of key numbers across the top of a page.
- Data TableSort, select and page through rows.
- GanttA project timeline with dependencies and the critical path.
- ChartHistograms, timelines, radars and more in the house style.
- Activity FeedWho did what, most recent first.
- TimelineEvents down a line, with icons and times.
- Confidence markHow sure something is, shown by shape as well as colour.
- Mini chartsTiny charts that fit inside a table cell or a card.
- Rich textShows saved rich text on a page, without loading the editor.