TreeIndent
The indent for a row's depth, its expand arrow (or a spacer for a leaf), then the row's content.
packages/ui/src/components/data/TreeIndent.tsx
Import
Subpath export:
@marktiderman/genesis-ui/dataimport { TreeIndent } from "@marktiderman/genesis-ui/data";Components
Auto-generated from TypeScript source via
react-docgen-typescript.TreeIndent
The indent for a row's depth, its expand arrow (or a spacer for a leaf), then the row's content.
| Prop | Type | Default | Description |
|---|---|---|---|
| name* | string | — | The row's name, for the arrow's label ("Expand North"). |
| node* | Pick<TreeNode<unknown>, "depth" | "hasChildren" | "expanded"> | — | |
| onToggle* | (open: boolean) => void | — | |
| className | string | — | |
| focusable | boolean | true | Whether the arrow is a tab stop. A table whose rows take ← and → leaves it out of the tab order (the row's keys do its job); a list without row keys keeps it in. |