namespace / @typed/ui

Tree

Public namespace exposed as Tree from @typed/ui.

Learn this UI primitive →

Package version
1.0.0-beta.13
Category
namespace

Import

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

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

Signatures

export * as Tree from "./Tree.js";

Members

  • Tree.Group

    Renders a child group and hides it while its parent id is not expanded.

  • Tree.GroupOptions

    Inputs accepted by Tree.Group in addition to the shared DOM host options.

  • Tree.InitialState

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

  • Tree.Item

    Renders and optionally registers a treeitem with level, expanded, disabled, and roving-focus state.

  • Tree.ItemOptions

    Inputs accepted by Tree.Item in addition to the shared DOM host options.

  • Tree.ItemValue

    Tree collection value recording an item’s parent relationship.

  • Tree.Root

    Renders the tree root and applies hierarchy-aware keyboard navigation to registered items.

  • Tree.RootOptions

    Inputs accepted by Tree.Root in addition to the shared DOM host options.

  • Tree.State

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

  • Tree.StateSchema

    Effect Schema used by makeState to encode, decode, and hydrate Tree state.

  • Tree.activate

    Sets the active tree item id without changing expansion.

  • Tree.collapse

    Removes an id from expandedIds.

  • Tree.expand

    Adds an id once to expandedIds.

  • Tree.isExpanded

    Tests membership in expandedIds without touching the DOM.

  • Tree.makeCollection

    Creates a scoped Collection for Tree items.

  • Tree.makeState

    Creates hydrated Tree state. activeId defaults null and expandedIds defaults empty.

Other public imports

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

Source