blessed-components - v1.20.0
    Preparing search index...

    Interface TabsData<TItem>

    Stateful data accepted by the Blessed tabs adapter.

    interface TabsData<TItem extends TabItem = TabItem> {
        activeId?: string;
        characters?: TabsCharacters;
        defaultValue?: string;
        emptyText?: string;
        items: readonly TItem[];
        onActiveIdChange?: (activeId: string) => void;
        onValueChange?: (value: string) => void;
        separator?: string;
        value?: string;
    }

    Type Parameters

    Index

    Properties

    activeId?: string

    Preferred initial focus identifier.

    characters?: TabsCharacters

    Character tokens used by the pure renderer.

    defaultValue?: string

    Initial active tab for uncontrolled usage. Ignored when value is supplied.

    emptyText?: string

    Text displayed when no tabs exist.

    items: readonly TItem[]

    Ordered tabs. Disabled tabs are visible but not interactive.

    onActiveIdChange?: (activeId: string) => void

    Called after focus moves to a different enabled tab.

    onValueChange?: (value: string) => void

    Called when Enter, Space, or TabsHandle.selectActive requests activation.

    separator?: string

    Text inserted between rendered tabs.

    value?: string

    Controlled active tab identifier.