Enode — API Reference
    Preparing search index...

    Function ChoiceMenu

    • The choices of a value button, as a menu under it or a sheet on a phone. Put the options in a ChoiceList; anything else (a field, a note) beside it.

      Parameters

      • anchor: {
            align?: "start" | "end";
            anchor: HTMLElement | null;
            children: ReactNode;
            label: string;
            onClose: () => void;
            open: boolean;
            width?: number;
        }

        The button, or an element that holds it. The menu is placed by it and the focus goes back to its button.

      Returns Element | null