Enode — API Reference
    Preparing search index...
    • What a setting is set to, as the button that opens its choices: the value and an arrow down, round and outlined, so it reads as a control at a glance. It is 32 px high; a finger gets 44 (TAP_TARGET).

      Parameters

      • __namedParameters: {
            children: ReactNode;
            expanded?: boolean;
            onClick: () => void;
            part?: string;
            popup?: "dialog" | "listbox";
        }
        • children: ReactNode
        • Optionalexpanded?: boolean

          Whether what it opens is open; left out where it is not tracked.

        • onClick: () => void
        • Optionalpart?: string

          Becomes data-part: which part of a larger setting the button changes.

        • Optionalpopup?: "dialog" | "listbox"

          What it opens: a dialog (a sheet, a drawer) or a list of choices.

      Returns Element

      It says aria-haspopup="dialog": open a sheet, a drawer or a picker from onClick, not a page. One that opens a ChoiceMenu says popup="listbox" and whether the menu is open (expanded).