Skip to content

HierarchyHeader

Open .md
Live preview

Loading example…

Drill-down path, pass it as the frame legend. Always first in the frame, even when the legend moves above the drawing.

import { HierarchyHeader } from "@jcsoftdev/ui/charts";

Single-component entry points tree-shake to just this component: @jcsoftdev/ui/charts/core.

export const Default: Story = {
render: () => <HeaderDemo start={deepest.id} />,
};

Source of the Storybook story.

Prop Type Default Description
path * readonly HierarchyNode[]
onSelect * (id: string) => void
labels * HierarchyLabels

* marks a required prop.

packages/ui/src/charts/core/hierarchy-chart.tsx