interface / @typed/ui/Tree

State

The focused node and expanded parent identities. Expansion controls visible traversal; file selection or opening is a separate application action.

Learn this UI primitive →

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

Import

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

Signatures

export interface State {
    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