Genesis
@stable

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/data
import { 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.

PropTypeDefaultDescription
name*string—The row's name, for the arrow's label ("Expand North").
node*Pick<TreeNode<unknown>, "depth" | "hasChildren" | "expanded">—
onToggle*(open: boolean) => void—
classNamestring—
focusablebooleantrueWhether 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.