middag-react
    Preparing search index...

    Interface TreeViewProps

    interface TreeViewProps {
        ariaLabel?: string;
        className?: string;
        expandedItems?: string[];
        indent?: number;
        items: Record<string, TreeViewNode>;
        rootItemId: string;
    }
    Index

    Properties

    ariaLabel?: string

    Accessible label for the tree. Defaults to a translated built-in.

    className?: string
    expandedItems?: string[]

    Node ids expanded on first render.

    indent?: number

    Indentation step in px per depth level. Default 20.

    items: Record<string, TreeViewNode>

    Flat map of node id → node.

    rootItemId: string

    Id of the root node (its children are the top-level rows).