TreeCard
Loading example…
Default node template: a card with a color rail, an avatar (image or initials), the name, a subtitle and an optional badge. Fills its box.
Import
Section titled “Import”import { TreeCard } from "@jcsoftdev/ui/charts";Single-component entry points tree-shake to just this component: @jcsoftdev/ui/charts/tree-chart.
<TreeCard node={root} state={idle} />| Prop | Type | Default | Description |
|---|---|---|---|
node * |
TreeChartNode |
||
state * |
TreeNodeState |
* marks a required prop.
Storybook stories
Section titled “Storybook stories”Source
Section titled “Source”packages/ui/src/charts/tree-chart/tree-card.tsx