@dxos/react-ui-list
    Preparing search index...

    Type Alias UseListSelectionOptions<M>

    type UseListSelectionOptions<M extends ListSelectionMode = ListSelectionMode> = {
        defaultValue?: ValueFor<M>;
        followsFocus?: boolean;
        mode: M;
        onValueChange?: (next: ValueFor<M>) => void;
        value?: ValueFor<M>;
    }

    Type Parameters

    Index

    Properties

    defaultValue?: ValueFor<M>
    followsFocus?: boolean

    Selection follows focus. Defaults to true for single-select (matches the WAI-ARIA listbox pattern) and false for multi-select (focus and toggle are separate gestures).

    mode: M
    onValueChange?: (next: ValueFor<M>) => void
    value?: ValueFor<M>

    Controlled selected id (single mode) or set of ids (multi mode).