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

    Type Alias GroupMenuProps<T>

    type GroupMenuProps<T extends string> = {
        fields: readonly ViewOption<T>[];
        label: string;
        none?: T;
        onChange: (value: T) => void;
        testId?: string;
        value: T;
    }

    Type Parameters

    • T extends string
    Index

    Properties

    fields: readonly ViewOption<T>[]
    label: string

    Trigger label while the list is ungrouped, and the menu's heading.

    none?: T

    The field that means one ungrouped list.

    onChange: (value: T) => void
    testId?: string

    Prefix of the trigger's and items' test ids (<testId>.<field>).

    value: T