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

    Interface CreateFocusScopeOptions<TItem>

    Options accepted by createFocusScope.

    interface CreateFocusScopeOptions<TItem extends CollectionItem> {
        initialFocusId?: string;
        items: readonly TItem[];
        trapped?: boolean;
    }

    Type Parameters

    Index

    Properties

    initialFocusId?: string

    Preferred item focused when the scope activates.

    items: readonly TItem[]

    Ordered focusable items. Disabled items are skipped.

    trapped?: boolean

    Whether focus wraps and remains inside the scope.

    true