@antadesign/anta
    Preparing search index...

    Interface TriggerState<V>Unreviewed

    Snapshot passed to renderTrigger so a custom trigger can reflect the current selection and open state.

    interface TriggerState<V extends OptionValue = string> {
        open: boolean;
        value: V | V[] | undefined;
        selected: SelectOption<V>[];
        disabled: boolean;
        icon?: keyof IconShapes;
    }

    Type Parameters

    Index
    open: boolean

    Whether the menu is open — use it for aria-expanded and a chevron.

    value: V | V[] | undefined

    The current selection: a single value (single), an array (multiple), or undefined when nothing is chosen.

    selected: SelectOption<V>[]

    The resolved option objects for the current selection (empty when none). selected.length is the multi-select count.

    disabled: boolean

    Whether the whole select is disabled.

    icon?: keyof IconShapes

    The icon shape passed to Select, if any — hand it to your trigger (e.g. a Button's icon) so a custom trigger keeps the same leading glyph.