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

    Type Alias ListboxRootProps

    ListboxRootProps: Omit<
        NextRootProps,
        "selectionMode"
        | "value"
        | "defaultValue"
        | "onValueChange",
    > & {
        defaultValue?: string;
        onDeselect?: () => void;
        onValueChange?: (value: string) => void;
        value?: string;
    }

    Type declaration

    • OptionaldefaultValue?: string
    • OptionalonDeselect?: () => void

      Clicking the selected row clears the selection; makes the list deselectable.

    • OptionalonValueChange?: (value: string) => void
    • Optionalvalue?: string

      Selected option id (controlled). Supplying any of value/defaultValue/onValueChange makes the list single-selection; omitting all three selects nothing (selectionMode='none'), keeping zag's navigation. Multiple selection, or a useListSelection-shaped value, goes through listboxSelection on Listbox.Root.