interface / @typed/ui/index

Tab.InitialState

Initial Tabs values. The caller supplies value; activeId defaults to value, activation is automatic, orientation horizontal, and loop true.

Learn this UI primitive →

Package version
1.0.0-beta.13
Category
Selection and focus
Since
1.0.0
Member of
Tab

Import

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

Access Tab.InitialState through the imported Tab 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 selectedId: string;
    readonly activeId?: string;
    readonly activationMode?: ActivationMode;
    readonly orientation?: Orientation;
    readonly loop?: boolean;
    readonly rtl?: boolean;
}

Property: activationMode

Whether tab focus also selects automatically or waits for explicit activation.

Property: activeId

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

Property: loop

Whether movement wraps between the first and last enabled items.

Property: orientation

Axis used to interpret Arrow-key movement.

Property: rtl

Whether horizontal Arrow-key meaning is reversed for right-to-left layout.

Property: selectedId

Id whose value is currently selected.

Other public imports

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

Source