Class MenuSwitch

Source
Expand description

React component. A menu item with a label adn a switch. See MenuSwitchProps

MenuSwitch(
    props: {
        onChange: (
            e:
                | MouseEvent<HTMLDivElement, MouseEvent>
                | ChangeEvent<HTMLInputElement, Element>,
            data: SwitchOnChangeData,
        ) => void;
    } & Omit<SwitchProps, "children" | "onChange"> & Omit<
        MenuItemProps,
        "children"
        | "onChange"
        | "onClick",
    > & { children?: ReactNode } & RefAttributes<HTMLDivElement>,
): ReactNode

Properties§

§static readonly $$typeof: symbol
§static displayName?: string

Used in debugging messages. You might want to set it explicitly if you want to display a different name for debugging purposes.

§static propTypes?: any

Ignored by React.

deprecated

Only kept in types for backwards compatibility. Will be removed in a future major release.