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
Member of
Tree

Import

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

Access Tree.State 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 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