interface / @typed/ui/index

Tree.InitialState

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

Learn this UI primitive →

Package version
1.0.0-beta.7
Category
Hierarchy state
Since
1.0.0
Member of
Tree

Import

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

Access Tree.InitialState through the imported Tree export. Its declaration below describes the member.

This public exposure is a re-export. Its import path is supported; declaration documentation is shared with the other public exposures below.

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