interface / @typed/ui/Tree

InitialState

Initial Tree values. activeId defaults null and expandedIds defaults empty.

Learn this UI primitive →

Package version
1.0.0-beta.13
Category
Hierarchy state
Since
1.0.0

Import

import { InitialState } from "@typed/ui/Tree";

Signatures

export interface InitialState {
    readonly activeId?: string | null;
    readonly expandedIds?: readonly string[];
    readonly loop?: boolean;
}

Property: activeId

Id currently active for keyboard navigation; null means no active item.

Property: expandedIds

Ids whose child tree groups are currently visible.

Property: loop

Whether movement wraps between the first and last enabled items.

Other public imports

These import paths expose the same declaration. Each page retains its own public name and signature.

Source