Expand description
interface MenuSwitchProps {
about?: string;
accept?: string;
accessKey?: string;
alt?: string;
"aria-activedescendant"?: string;
"aria-atomic"?: Booleanish;
"aria-autocomplete"?: "none" | "inline" | "list" | "both";
"aria-braillelabel"?: string;
"aria-brailleroledescription"?: string;
"aria-busy"?: Booleanish;
"aria-checked"?: boolean | "true" | "false" | "mixed";
"aria-colcount"?: number;
"aria-colindex"?: number;
"aria-colindextext"?: string;
"aria-colspan"?: number;
"aria-controls"?: string;
"aria-current"?:
| boolean
| "page"
| "time"
| "step"
| "true"
| "false"
| "location"
| "date";
"aria-describedby"?: string;
"aria-description"?: string;
"aria-details"?: string;
"aria-disabled"?: Booleanish;
"aria-dropeffect"?: "none"
| "copy"
| "move"
| "link"
| "execute"
| "popup";
"aria-errormessage"?: string;
"aria-expanded"?: Booleanish;
"aria-flowto"?: string;
"aria-grabbed"?: Booleanish;
"aria-haspopup"?:
| boolean
| "menu"
| "grid"
| "dialog"
| "true"
| "false"
| "listbox"
| "tree";
"aria-hidden"?: Booleanish;
"aria-invalid"?: boolean
| "true"
| "false"
| "grammar"
| "spelling";
"aria-keyshortcuts"?: string;
"aria-label"?: string;
"aria-labelledby"?: string;
"aria-level"?: number;
"aria-live"?: "off" | "assertive" | "polite";
"aria-modal"?: Booleanish;
"aria-multiline"?: Booleanish;
"aria-multiselectable"?: Booleanish;
"aria-orientation"?: "horizontal" | "vertical";
"aria-owns"?: string;
"aria-placeholder"?: string;
"aria-posinset"?: number;
"aria-pressed"?: boolean | "true" | "false" | "mixed";
"aria-readonly"?: Booleanish;
"aria-relevant"?:
| "all"
| "text"
| "additions"
| "additions removals"
| "additions text"
| "removals"
| "removals additions"
| "removals text"
| "text additions"
| "text removals";
"aria-required"?: Booleanish;
"aria-roledescription"?: string;
"aria-rowcount"?: number;
"aria-rowindex"?: number;
"aria-rowindextext"?: string;
"aria-rowspan"?: number;
"aria-selected"?: Booleanish;
"aria-setsize"?: number;
"aria-sort"?: "none"
| "other"
| "ascending"
| "descending";
"aria-valuemax"?: number;
"aria-valuemin"?: number;
"aria-valuenow"?: number;
"aria-valuetext"?: string;
as?: undefined;
autoCapitalize?:
| string & {}
| "none"
| "off"
| "on"
| "sentences"
| "words"
| "characters";
autoComplete?: HTMLInputAutoCompleteAttribute;
autoCorrect?: string;
autoFocus?: boolean;
autoSave?: string;
capture?: boolean
| "user"
| "environment";
checked?: boolean;
checkmark?:
| WithSlotShorthandValue<
{ as?: "span" } & Omit<
DetailedHTMLProps<HTMLAttributes<HTMLSpanElement>, HTMLSpanElement>,
"children",
> & { children?: any },
>
| null;
className?: string;
color?: string;
content?: string & (WithSlotShorthandValue<{ as?: "span" | undefined; } & Omit<DetailedHTMLProps<HTMLAttributes<HTMLSpanElement>, HTMLSpanElement>, "children"> & { ...; }> | null);
contentEditable?: "inherit" | Booleanish | "plaintext-only";
contextMenu?: string;
dangerouslySetInnerHTML?: { __html: string | TrustedHTML };
datatype?: string;
defaultChecked?: boolean;
defaultValue?: string | number | readonly string[];
dir?: string;
disabled?: boolean;
disabledFocusable?: boolean;
draggable?: Booleanish;
enterKeyHint?:
| "search"
| "enter"
| "done"
| "go"
| "next"
| "previous"
| "send";
exportparts?: string;
form?: string;
formAction?: string
| ((formData: FormData) => void | Promise<void>);
formEncType?: string;
formMethod?: string;
formNoValidate?: boolean;
formTarget?: string;
hasSubmenu?: boolean;
height?: string | number;
hidden?: boolean;
icon?:
| WithSlotShorthandValue<
{ as?: "span" } & Omit<
DetailedHTMLProps<HTMLAttributes<HTMLSpanElement>, HTMLSpanElement>,
"children",
> & { children?: any },
>
| null;
id?: string;
indicator?: NonNullable<
(
WithSlotShorthandValue<{ as?: "div" | undefined; } & Omit<DetailedHTMLProps<HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "children"> & { ...; }> | null
),
>;
inert?: boolean;
inlist?: any;
input?: { as?: "input" } & Omit<
DetailedHTMLProps<
InputHTMLAttributes<HTMLInputElement>,
HTMLInputElement,
>,
"children",
> & { children?: undefined };
inputMode?:
| "none"
| "text"
| "search"
| "tel"
| "url"
| "email"
| "numeric"
| "decimal";
is?: string;
itemID?: string;
itemProp?: string;
itemRef?: string;
itemScope?: boolean;
itemType?: string;
key?: Key
| null;
label?:
| WithSlotShorthandValue<
Omit<ComponentProps<LabelSlots>, "required"> & {
disabled?: boolean;
required?: boolean | WithSlotShorthandValue<{ as?: "span" | undefined; } & Omit<DetailedHTMLProps<HTMLAttributes<HTMLSpanElement>, HTMLSpanElement>, "children"> & { ...; }> | null | undefined;
size?: "medium" | "small" | "large";
weight?: "regular" | "semibold";
} & RefAttributes<HTMLLabelElement>,
>
| null;
labelPosition?: "above" | "after" | "before";
lang?: string;
list?: string;
max?: string | number;
maxLength?: number;
min?: string | number;
minLength?: number;
multiple?: boolean;
name?: string;
nonce?: string;
onAbort?: ReactEventHandler<HTMLInputElement> & ReactEventHandler<
HTMLDivElement,
>;
onAbortCapture?: ReactEventHandler<HTMLInputElement> & ReactEventHandler<
HTMLDivElement,
>;
onAnimationEnd?: AnimationEventHandler<HTMLInputElement> & AnimationEventHandler<
HTMLDivElement,
>;
onAnimationEndCapture?: AnimationEventHandler<HTMLInputElement> & AnimationEventHandler<
HTMLDivElement,
>;
onAnimationIteration?: AnimationEventHandler<HTMLInputElement> & AnimationEventHandler<
HTMLDivElement,
>;
onAnimationIterationCapture?: AnimationEventHandler<HTMLInputElement> & AnimationEventHandler<
HTMLDivElement,
>;
onAnimationStart?: AnimationEventHandler<HTMLInputElement> & AnimationEventHandler<
HTMLDivElement,
>;
onAnimationStartCapture?: AnimationEventHandler<HTMLInputElement> & AnimationEventHandler<
HTMLDivElement,
>;
onAuxClick?: MouseEventHandler<HTMLInputElement> & MouseEventHandler<
HTMLDivElement,
>;
onAuxClickCapture?: MouseEventHandler<HTMLInputElement> & MouseEventHandler<
HTMLDivElement,
>;
onBeforeInput?: InputEventHandler<HTMLInputElement> & InputEventHandler<
HTMLDivElement,
>;
onBeforeInputCapture?: InputEventHandler<HTMLInputElement> & InputEventHandler<
HTMLDivElement,
>;
onBeforeToggle?: ToggleEventHandler<HTMLInputElement> & ToggleEventHandler<
HTMLDivElement,
>;
onBlur?: FocusEventHandler<HTMLInputElement> & FocusEventHandler<
HTMLDivElement,
>;
onBlurCapture?: FocusEventHandler<HTMLInputElement> & FocusEventHandler<
HTMLDivElement,
>;
onCanPlay?: ReactEventHandler<HTMLInputElement> & ReactEventHandler<
HTMLDivElement,
>;
onCanPlayCapture?: ReactEventHandler<HTMLInputElement> & ReactEventHandler<
HTMLDivElement,
>;
onCanPlayThrough?: ReactEventHandler<HTMLInputElement> & ReactEventHandler<
HTMLDivElement,
>;
onCanPlayThroughCapture?: ReactEventHandler<HTMLInputElement> & ReactEventHandler<
HTMLDivElement,
>;
onChange: (
e:
| MouseEvent<HTMLDivElement, MouseEvent>
| ChangeEvent<HTMLInputElement, Element>,
data: SwitchOnChangeData,
) => void;
onChangeCapture?: ChangeEventHandler<HTMLInputElement, Element> & ChangeEventHandler<
HTMLDivElement,
Element,
>;
onClick?: MouseEventHandler<HTMLInputElement>;
onClickCapture?: MouseEventHandler<HTMLInputElement> & MouseEventHandler<
HTMLDivElement,
>;
onCompositionEnd?: CompositionEventHandler<HTMLInputElement> & CompositionEventHandler<
HTMLDivElement,
>;
onCompositionEndCapture?: CompositionEventHandler<HTMLInputElement> & CompositionEventHandler<
HTMLDivElement,
>;
onCompositionStart?: CompositionEventHandler<HTMLInputElement> & CompositionEventHandler<
HTMLDivElement,
>;
onCompositionStartCapture?: CompositionEventHandler<HTMLInputElement> & CompositionEventHandler<
HTMLDivElement,
>;
onCompositionUpdate?: CompositionEventHandler<HTMLInputElement> & CompositionEventHandler<
HTMLDivElement,
>;
onCompositionUpdateCapture?: CompositionEventHandler<HTMLInputElement> & CompositionEventHandler<
HTMLDivElement,
>;
onContextMenu?: MouseEventHandler<HTMLInputElement> & MouseEventHandler<
HTMLDivElement,
>;
onContextMenuCapture?: MouseEventHandler<HTMLInputElement> & MouseEventHandler<
HTMLDivElement,
>;
onCopy?: ClipboardEventHandler<HTMLInputElement> & ClipboardEventHandler<
HTMLDivElement,
>;
onCopyCapture?: ClipboardEventHandler<HTMLInputElement> & ClipboardEventHandler<
HTMLDivElement,
>;
onCut?: ClipboardEventHandler<HTMLInputElement> & ClipboardEventHandler<
HTMLDivElement,
>;
onCutCapture?: ClipboardEventHandler<HTMLInputElement> & ClipboardEventHandler<
HTMLDivElement,
>;
onDoubleClick?: MouseEventHandler<HTMLInputElement> & MouseEventHandler<
HTMLDivElement,
>;
onDoubleClickCapture?: MouseEventHandler<HTMLInputElement> & MouseEventHandler<
HTMLDivElement,
>;
onDrag?: DragEventHandler<HTMLInputElement> & DragEventHandler<
HTMLDivElement,
>;
onDragCapture?: DragEventHandler<HTMLInputElement> & DragEventHandler<
HTMLDivElement,
>;
onDragEnd?: DragEventHandler<HTMLInputElement> & DragEventHandler<
HTMLDivElement,
>;
onDragEndCapture?: DragEventHandler<HTMLInputElement> & DragEventHandler<
HTMLDivElement,
>;
onDragEnter?: DragEventHandler<HTMLInputElement> & DragEventHandler<
HTMLDivElement,
>;
onDragEnterCapture?: DragEventHandler<HTMLInputElement> & DragEventHandler<
HTMLDivElement,
>;
onDragExit?: DragEventHandler<HTMLInputElement> & DragEventHandler<
HTMLDivElement,
>;
onDragExitCapture?: DragEventHandler<HTMLInputElement> & DragEventHandler<
HTMLDivElement,
>;
onDragLeave?: DragEventHandler<HTMLInputElement> & DragEventHandler<
HTMLDivElement,
>;
onDragLeaveCapture?: DragEventHandler<HTMLInputElement> & DragEventHandler<
HTMLDivElement,
>;
onDragOver?: DragEventHandler<HTMLInputElement> & DragEventHandler<
HTMLDivElement,
>;
onDragOverCapture?: DragEventHandler<HTMLInputElement> & DragEventHandler<
HTMLDivElement,
>;
onDragStart?: DragEventHandler<HTMLInputElement> & DragEventHandler<
HTMLDivElement,
>;
onDragStartCapture?: DragEventHandler<HTMLInputElement> & DragEventHandler<
HTMLDivElement,
>;
onDrop?: DragEventHandler<HTMLInputElement> & DragEventHandler<
HTMLDivElement,
>;
onDropCapture?: DragEventHandler<HTMLInputElement> & DragEventHandler<
HTMLDivElement,
>;
onDurationChange?: ReactEventHandler<HTMLInputElement> & ReactEventHandler<
HTMLDivElement,
>;
onDurationChangeCapture?: ReactEventHandler<HTMLInputElement> & ReactEventHandler<
HTMLDivElement,
>;
onEmptied?: ReactEventHandler<HTMLInputElement> & ReactEventHandler<
HTMLDivElement,
>;
onEmptiedCapture?: ReactEventHandler<HTMLInputElement> & ReactEventHandler<
HTMLDivElement,
>;
onEncrypted?: ReactEventHandler<HTMLInputElement> & ReactEventHandler<
HTMLDivElement,
>;
onEncryptedCapture?: ReactEventHandler<HTMLInputElement> & ReactEventHandler<
HTMLDivElement,
>;
onEnded?: ReactEventHandler<HTMLInputElement> & ReactEventHandler<
HTMLDivElement,
>;
onEndedCapture?: ReactEventHandler<HTMLInputElement> & ReactEventHandler<
HTMLDivElement,
>;
onError?: ReactEventHandler<HTMLInputElement> & ReactEventHandler<
HTMLDivElement,
>;
onErrorCapture?: ReactEventHandler<HTMLInputElement> & ReactEventHandler<
HTMLDivElement,
>;
onFocus?: FocusEventHandler<HTMLInputElement> & FocusEventHandler<
HTMLDivElement,
>;
onFocusCapture?: FocusEventHandler<HTMLInputElement> & FocusEventHandler<
HTMLDivElement,
>;
onGotPointerCapture?: PointerEventHandler<HTMLInputElement> & PointerEventHandler<
HTMLDivElement,
>;
onGotPointerCaptureCapture?: PointerEventHandler<HTMLInputElement> & PointerEventHandler<
HTMLDivElement,
>;
onInput?: InputEventHandler<HTMLInputElement> & InputEventHandler<
HTMLDivElement,
>;
onInputCapture?: InputEventHandler<HTMLInputElement> & InputEventHandler<
HTMLDivElement,
>;
onInvalid?: ReactEventHandler<HTMLInputElement> & ReactEventHandler<
HTMLDivElement,
>;
onInvalidCapture?: ReactEventHandler<HTMLInputElement> & ReactEventHandler<
HTMLDivElement,
>;
onKeyDown?: KeyboardEventHandler<HTMLInputElement> & KeyboardEventHandler<
HTMLDivElement,
>;
onKeyDownCapture?: KeyboardEventHandler<HTMLInputElement> & KeyboardEventHandler<
HTMLDivElement,
>;
onKeyPress?: KeyboardEventHandler<HTMLInputElement> & KeyboardEventHandler<
HTMLDivElement,
>;
onKeyPressCapture?: KeyboardEventHandler<HTMLInputElement> & KeyboardEventHandler<
HTMLDivElement,
>;
onKeyUp?: KeyboardEventHandler<HTMLInputElement> & KeyboardEventHandler<
HTMLDivElement,
>;
onKeyUpCapture?: KeyboardEventHandler<HTMLInputElement> & KeyboardEventHandler<
HTMLDivElement,
>;
onLoad?: ReactEventHandler<HTMLInputElement> & ReactEventHandler<
HTMLDivElement,
>;
onLoadCapture?: ReactEventHandler<HTMLInputElement> & ReactEventHandler<
HTMLDivElement,
>;
onLoadedData?: ReactEventHandler<HTMLInputElement> & ReactEventHandler<
HTMLDivElement,
>;
onLoadedDataCapture?: ReactEventHandler<HTMLInputElement> & ReactEventHandler<
HTMLDivElement,
>;
onLoadedMetadata?: ReactEventHandler<HTMLInputElement> & ReactEventHandler<
HTMLDivElement,
>;
onLoadedMetadataCapture?: ReactEventHandler<HTMLInputElement> & ReactEventHandler<
HTMLDivElement,
>;
onLoadStart?: ReactEventHandler<HTMLInputElement> & ReactEventHandler<
HTMLDivElement,
>;
onLoadStartCapture?: ReactEventHandler<HTMLInputElement> & ReactEventHandler<
HTMLDivElement,
>;
onLostPointerCapture?: PointerEventHandler<HTMLInputElement> & PointerEventHandler<
HTMLDivElement,
>;
onLostPointerCaptureCapture?: PointerEventHandler<HTMLInputElement> & PointerEventHandler<
HTMLDivElement,
>;
onMouseDown?: MouseEventHandler<HTMLInputElement> & MouseEventHandler<
HTMLDivElement,
>;
onMouseDownCapture?: MouseEventHandler<HTMLInputElement> & MouseEventHandler<
HTMLDivElement,
>;
onMouseEnter?: MouseEventHandler<HTMLInputElement> & MouseEventHandler<
HTMLDivElement,
>;
onMouseLeave?: MouseEventHandler<HTMLInputElement> & MouseEventHandler<
HTMLDivElement,
>;
onMouseMove?: MouseEventHandler<HTMLInputElement> & MouseEventHandler<
HTMLDivElement,
>;
onMouseMoveCapture?: MouseEventHandler<HTMLInputElement> & MouseEventHandler<
HTMLDivElement,
>;
onMouseOut?: MouseEventHandler<HTMLInputElement> & MouseEventHandler<
HTMLDivElement,
>;
onMouseOutCapture?: MouseEventHandler<HTMLInputElement> & MouseEventHandler<
HTMLDivElement,
>;
onMouseOver?: MouseEventHandler<HTMLInputElement> & MouseEventHandler<
HTMLDivElement,
>;
onMouseOverCapture?: MouseEventHandler<HTMLInputElement> & MouseEventHandler<
HTMLDivElement,
>;
onMouseUp?: MouseEventHandler<HTMLInputElement> & MouseEventHandler<
HTMLDivElement,
>;
onMouseUpCapture?: MouseEventHandler<HTMLInputElement> & MouseEventHandler<
HTMLDivElement,
>;
onPaste?: ClipboardEventHandler<HTMLInputElement> & ClipboardEventHandler<
HTMLDivElement,
>;
onPasteCapture?: ClipboardEventHandler<HTMLInputElement> & ClipboardEventHandler<
HTMLDivElement,
>;
onPause?: ReactEventHandler<HTMLInputElement> & ReactEventHandler<
HTMLDivElement,
>;
onPauseCapture?: ReactEventHandler<HTMLInputElement> & ReactEventHandler<
HTMLDivElement,
>;
onPlay?: ReactEventHandler<HTMLInputElement> & ReactEventHandler<
HTMLDivElement,
>;
onPlayCapture?: ReactEventHandler<HTMLInputElement> & ReactEventHandler<
HTMLDivElement,
>;
onPlaying?: ReactEventHandler<HTMLInputElement> & ReactEventHandler<
HTMLDivElement,
>;
onPlayingCapture?: ReactEventHandler<HTMLInputElement> & ReactEventHandler<
HTMLDivElement,
>;
onPointerCancel?: PointerEventHandler<HTMLInputElement> & PointerEventHandler<
HTMLDivElement,
>;
onPointerCancelCapture?: PointerEventHandler<HTMLInputElement> & PointerEventHandler<
HTMLDivElement,
>;
onPointerDown?: PointerEventHandler<HTMLInputElement> & PointerEventHandler<
HTMLDivElement,
>;
onPointerDownCapture?: PointerEventHandler<HTMLInputElement> & PointerEventHandler<
HTMLDivElement,
>;
onPointerEnter?: PointerEventHandler<HTMLInputElement> & PointerEventHandler<
HTMLDivElement,
>;
onPointerLeave?: PointerEventHandler<HTMLInputElement> & PointerEventHandler<
HTMLDivElement,
>;
onPointerMove?: PointerEventHandler<HTMLInputElement> & PointerEventHandler<
HTMLDivElement,
>;
onPointerMoveCapture?: PointerEventHandler<HTMLInputElement> & PointerEventHandler<
HTMLDivElement,
>;
onPointerOut?: PointerEventHandler<HTMLInputElement> & PointerEventHandler<
HTMLDivElement,
>;
onPointerOutCapture?: PointerEventHandler<HTMLInputElement> & PointerEventHandler<
HTMLDivElement,
>;
onPointerOver?: PointerEventHandler<HTMLInputElement> & PointerEventHandler<
HTMLDivElement,
>;
onPointerOverCapture?: PointerEventHandler<HTMLInputElement> & PointerEventHandler<
HTMLDivElement,
>;
onPointerUp?: PointerEventHandler<HTMLInputElement> & PointerEventHandler<
HTMLDivElement,
>;
onPointerUpCapture?: PointerEventHandler<HTMLInputElement> & PointerEventHandler<
HTMLDivElement,
>;
onProgress?: ReactEventHandler<HTMLInputElement> & ReactEventHandler<
HTMLDivElement,
>;
onProgressCapture?: ReactEventHandler<HTMLInputElement> & ReactEventHandler<
HTMLDivElement,
>;
onRateChange?: ReactEventHandler<HTMLInputElement> & ReactEventHandler<
HTMLDivElement,
>;
onRateChangeCapture?: ReactEventHandler<HTMLInputElement> & ReactEventHandler<
HTMLDivElement,
>;
onReset?: ReactEventHandler<HTMLInputElement> & ReactEventHandler<
HTMLDivElement,
>;
onResetCapture?: ReactEventHandler<HTMLInputElement> & ReactEventHandler<
HTMLDivElement,
>;
onScroll?: UIEventHandler<HTMLInputElement> & UIEventHandler<
HTMLDivElement,
>;
onScrollCapture?: UIEventHandler<HTMLInputElement> & UIEventHandler<
HTMLDivElement,
>;
onScrollEnd?: UIEventHandler<HTMLInputElement> & UIEventHandler<
HTMLDivElement,
>;
onScrollEndCapture?: UIEventHandler<HTMLInputElement> & UIEventHandler<
HTMLDivElement,
>;
onSeeked?: ReactEventHandler<HTMLInputElement> & ReactEventHandler<
HTMLDivElement,
>;
onSeekedCapture?: ReactEventHandler<HTMLInputElement> & ReactEventHandler<
HTMLDivElement,
>;
onSeeking?: ReactEventHandler<HTMLInputElement> & ReactEventHandler<
HTMLDivElement,
>;
onSeekingCapture?: ReactEventHandler<HTMLInputElement> & ReactEventHandler<
HTMLDivElement,
>;
onSelect?: ReactEventHandler<HTMLInputElement> & ReactEventHandler<
HTMLDivElement,
>;
onSelectCapture?: ReactEventHandler<HTMLInputElement> & ReactEventHandler<
HTMLDivElement,
>;
onStalled?: ReactEventHandler<HTMLInputElement> & ReactEventHandler<
HTMLDivElement,
>;
onStalledCapture?: ReactEventHandler<HTMLInputElement> & ReactEventHandler<
HTMLDivElement,
>;
onSubmit?: SubmitEventHandler<HTMLInputElement> & SubmitEventHandler<
HTMLDivElement,
>;
onSubmitCapture?: SubmitEventHandler<HTMLInputElement> & SubmitEventHandler<
HTMLDivElement,
>;
onSuspend?: ReactEventHandler<HTMLInputElement> & ReactEventHandler<
HTMLDivElement,
>;
onSuspendCapture?: ReactEventHandler<HTMLInputElement> & ReactEventHandler<
HTMLDivElement,
>;
onTimeUpdate?: ReactEventHandler<HTMLInputElement> & ReactEventHandler<
HTMLDivElement,
>;
onTimeUpdateCapture?: ReactEventHandler<HTMLInputElement> & ReactEventHandler<
HTMLDivElement,
>;
onToggle?: ToggleEventHandler<HTMLInputElement> & ToggleEventHandler<
HTMLDivElement,
>;
onTouchCancel?: TouchEventHandler<HTMLInputElement> & TouchEventHandler<
HTMLDivElement,
>;
onTouchCancelCapture?: TouchEventHandler<HTMLInputElement> & TouchEventHandler<
HTMLDivElement,
>;
onTouchEnd?: TouchEventHandler<HTMLInputElement> & TouchEventHandler<
HTMLDivElement,
>;
onTouchEndCapture?: TouchEventHandler<HTMLInputElement> & TouchEventHandler<
HTMLDivElement,
>;
onTouchMove?: TouchEventHandler<HTMLInputElement> & TouchEventHandler<
HTMLDivElement,
>;
onTouchMoveCapture?: TouchEventHandler<HTMLInputElement> & TouchEventHandler<
HTMLDivElement,
>;
onTouchStart?: TouchEventHandler<HTMLInputElement> & TouchEventHandler<
HTMLDivElement,
>;
onTouchStartCapture?: TouchEventHandler<HTMLInputElement> & TouchEventHandler<
HTMLDivElement,
>;
onTransitionCancel?: TransitionEventHandler<HTMLInputElement> & TransitionEventHandler<
HTMLDivElement,
>;
onTransitionCancelCapture?: TransitionEventHandler<HTMLInputElement> & TransitionEventHandler<
HTMLDivElement,
>;
onTransitionEnd?: TransitionEventHandler<HTMLInputElement> & TransitionEventHandler<
HTMLDivElement,
>;
onTransitionEndCapture?: TransitionEventHandler<HTMLInputElement> & TransitionEventHandler<
HTMLDivElement,
>;
onTransitionRun?: TransitionEventHandler<HTMLInputElement> & TransitionEventHandler<
HTMLDivElement,
>;
onTransitionRunCapture?: TransitionEventHandler<HTMLInputElement> & TransitionEventHandler<
HTMLDivElement,
>;
onTransitionStart?: TransitionEventHandler<HTMLInputElement> & TransitionEventHandler<
HTMLDivElement,
>;
onTransitionStartCapture?: TransitionEventHandler<HTMLInputElement> & TransitionEventHandler<
HTMLDivElement,
>;
onVolumeChange?: ReactEventHandler<HTMLInputElement> & ReactEventHandler<
HTMLDivElement,
>;
onVolumeChangeCapture?: ReactEventHandler<HTMLInputElement> & ReactEventHandler<
HTMLDivElement,
>;
onWaiting?: ReactEventHandler<HTMLInputElement> & ReactEventHandler<
HTMLDivElement,
>;
onWaitingCapture?: ReactEventHandler<HTMLInputElement> & ReactEventHandler<
HTMLDivElement,
>;
onWheel?: WheelEventHandler<HTMLInputElement> & WheelEventHandler<
HTMLDivElement,
>;
onWheelCapture?: WheelEventHandler<HTMLInputElement> & WheelEventHandler<
HTMLDivElement,
>;
part?: string;
pattern?: string;
persistOnClick?: boolean;
placeholder?: string;
popover?: ""
| "auto"
| "manual"
| "hint";
popoverTarget?: string;
popoverTargetAction?: "toggle" | "show" | "hide";
prefix?: string;
property?: string;
radioGroup?: string;
readOnly?: boolean;
rel?: string;
required?: boolean;
resource?: string;
results?: number;
rev?: string;
role?: AriaRole;
root?: NonNullable<
(
WithSlotShorthandValue<{ as?: "div" | undefined; } & Omit<DetailedHTMLProps<HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "children"> & { ...; }> | null
),
>;
secondaryContent?: | WithSlotShorthandValue<
{ as?: "span" } & Omit<
DetailedHTMLProps<HTMLAttributes<HTMLSpanElement>, HTMLSpanElement>,
"children",
> & { children?: any },
>
| null;
security?: string;
size?: "medium" | "small";
slot?: string;
spellCheck?: Booleanish;
src?: string;
step?: string | number;
style?: CSSProperties;
submenuIndicator?:
| WithSlotShorthandValue<
{ as?: "span" } & Omit<
DetailedHTMLProps<HTMLAttributes<HTMLSpanElement>, HTMLSpanElement>,
"children",
> & { children?: any },
>
| null;
subText?:
| WithSlotShorthandValue<
{ as?: "span" } & Omit<
DetailedHTMLProps<HTMLAttributes<HTMLSpanElement>, HTMLSpanElement>,
"children",
> & { children?: any },
>
| null;
suppressContentEditableWarning?: boolean;
suppressHydrationWarning?: boolean;
tabIndex?: number;
title?: string;
translate?: "yes" | "no";
type?: HTMLInputTypeAttribute;
typeof?: string;
unselectable?: "off" | "on";
value?: string | number | readonly string[];
vocab?: string;
width?: string | number;
}Properties§
about?: string§accept?: string§access Key?: string§alt?: string§aria - activedescendant?: stringIdentifies the currently active element when DOM focus is on a composite widget, textbox, group, or application.
aria - atomic?: BooleanishIndicates whether assistive technologies will present all, or only parts of, the changed region based on the change notifications defined by the aria-relevant attribute.
aria - autocomplete?: "none" | "inline" | "list" | "both"Indicates whether inputting text could trigger display of one or more predictions of the user's intended value for an input and specifies how predictions would be presented if they are made.
aria - braillelabel?: stringDefines a string value that labels the current element, which is intended to be converted into Braille.
aria - brailleroledescription?: stringDefines a human-readable, author-localized abbreviated description for the role of an element, which is intended to be converted into Braille.
aria - busy?: Booleanish§aria - checked?: boolean | "true" | "false" | "mixed"Indicates the current "checked" state of checkboxes, radio buttons, and other widgets.
aria - colcount?: numberDefines the total number of columns in a table, grid, or treegrid.
aria - colindex?: numberDefines an element's column index or position with respect to the total number of columns within a table, grid, or treegrid.
aria - colindextext?: stringDefines a human readable text alternative of aria-colindex.
aria - colspan?: numberDefines the number of columns spanned by a cell or gridcell within a table, grid, or treegrid.
aria - controls?: stringIdentifies the element (or elements) whose contents or presence are controlled by the current element.
aria - current?: boolean | "page" | "time" | "step" | "true" | "false" | "location" | "date"Indicates the element that represents the current item within a container or set of related elements.
aria - describedby?: stringIdentifies the element (or elements) that describes the object.
aria - description?: stringDefines a string value that describes or annotates the current element.
aria - details?: stringIdentifies the element that provides a detailed, extended description for the object.
aria - disabled?: BooleanishIndicates that the element is perceivable but disabled, so it is not editable or otherwise operable.
aria - dropeffect?: "none" | "copy" | "move" | "link" | "execute" | "popup"Indicates what functions can be performed when a dragged object is released on the drop target.
aria - errormessage?: stringIdentifies the element that provides an error message for the object.
aria - expanded?: BooleanishIndicates whether the element, or another grouping element it controls, is currently expanded or collapsed.
aria - flowto?: stringIdentifies the next element (or elements) in an alternate reading order of content which, at the user's discretion, allows assistive technology to override the general default of reading in document source order.
aria - grabbed?: BooleanishIndicates an element's "grabbed" state in a drag-and-drop operation.
aria - haspopup?: boolean | "menu" | "grid" | "dialog" | "true" | "false" | "listbox" | "tree"Indicates the availability and type of interactive popup element, such as menu or dialog, that can be triggered by an element.
Indicates whether the element is exposed to an accessibility API.
aria - invalid?: boolean | "true" | "false" | "grammar" | "spelling"Indicates the entered value does not conform to the format expected by the application.
aria - keyshortcuts?: stringIndicates keyboard shortcuts that an author has implemented to activate or give focus to an element.
aria - label?: stringDefines a string value that labels the current element.
aria - labelledby?: stringIdentifies the element (or elements) that labels the current element.
aria - level?: numberDefines the hierarchical level of an element within a structure.
aria - live?: "off" | "assertive" | "polite"Indicates that an element will be updated, and describes the types of updates the user agents, assistive technologies, and user can expect from the live region.
aria - modal?: BooleanishIndicates whether an element is modal when displayed.
aria - multiline?: BooleanishIndicates whether a text box accepts multiple lines of input or only a single line.
aria - multiselectable?: BooleanishIndicates that the user may select more than one item from the current selectable descendants.
aria - orientation?: "horizontal" | "vertical"Indicates whether the element's orientation is horizontal, vertical, or unknown/ambiguous.
aria - owns?: stringIdentifies an element (or elements) in order to define a visual, functional, or contextual parent/child relationship between DOM elements where the DOM hierarchy cannot be used to represent the relationship.
aria - placeholder?: stringDefines a short hint (a word or short phrase) intended to aid the user with data entry when the control has no value. A hint could be a sample value or a brief description of the expected format.
aria - posinset?: numberDefines an element's number or position in the current set of listitems or treeitems. Not required if all elements in the set are present in the DOM.
aria - pressed?: boolean | "true" | "false" | "mixed"Indicates the current "pressed" state of toggle buttons.
aria - readonly?: BooleanishIndicates that the element is not editable, but is otherwise operable.
aria - relevant?:
| "all"
| "text"
| "additions"
| "additions removals"
| "additions text"
| "removals"
| "removals additions"
| "removals text"
| "text additions"
| "text removals"Indicates what notifications the user agent will trigger when the accessibility tree within a live region is modified.
aria - required?: BooleanishIndicates that user input is required on the element before a form may be submitted.
aria - roledescription?: stringDefines a human-readable, author-localized description for the role of an element.
aria - rowcount?: numberDefines the total number of rows in a table, grid, or treegrid.
aria - rowindex?: numberDefines an element's row index or position with respect to the total number of rows within a table, grid, or treegrid.
aria - rowindextext?: stringDefines a human readable text alternative of aria-rowindex.
aria - rowspan?: numberDefines the number of rows spanned by a cell or gridcell within a table, grid, or treegrid.
aria - selected?: BooleanishIndicates the current "selected" state of various widgets.
aria - setsize?: numberDefines the number of items in the current set of listitems or treeitems. Not required if all elements in the set are present in the DOM.
aria - sort?: "none" | "other" | "ascending" | "descending"Indicates if items in a table or grid are sorted in ascending or descending order.
aria - valuemax?: numberDefines the maximum allowed value for a range widget.
aria - valuemin?: numberDefines the minimum allowed value for a range widget.
aria - valuenow?: numberDefines the current value for a range widget.
aria - valuetext?: stringDefines the human readable text alternative of aria-valuenow for a range widget.
as?: undefined§auto Capitalize?: string & {} | "none" | "off" | "on" | "sentences" | "words" | "characters"§auto Complete?: HTMLInputAutoCompleteAttribute§auto Correct?: string§auto Focus?: boolean§auto Save?: string§capture?: boolean | "user" | "environment"§checked?: booleanDefines the controlled checked state of the Switch.
If passed, Switch ignores the defaultChecked property.
This should only be used if the checked state is to be controlled at a higher level and there is a plan to pass the
correct value based on handling onChange events and re-rendering.
checkmark?:
| WithSlotShorthandValue<
{ as?: "span" } & Omit<
DetailedHTMLProps<HTMLAttributes<HTMLSpanElement>, HTMLSpanElement>,
"children",
> & { children?: any },
>
| nullA helper slot for alignment when a menu item is used with selectable menuitems Avoid using this slot as a replacement for MenuItemCheckbox and MenuItemRadio components
class Name?: string§color?: string§content?: string & (WithSlotShorthandValue<{ as?: "span" | undefined; } & Omit<DetailedHTMLProps<HTMLAttributes<HTMLSpanElement>, HTMLSpanElement>, "children"> & { ...; }> | null)Component children are placed in this slot
Avoid using the children property in this slot in favour of Component children whenever possible
content Editable?: "inherit" | Booleanish | "plaintext-only"§dangerously Set Inner HTML?: { ... }§datatype?: string§default Checked?: booleanDefines whether the Switch is initially in a checked state or not when rendered.
default Value?: string | number | readonly string[]§dir?: string§disabled?: boolean§disabled Focusable?: booleanWhen set, allows the Switch to be focusable even when it has been disabled. This is used in scenarios where it is important to keep a consistent tab order for screen reader and keyboard users.
draggable?: Booleanish§enter Key Hint?: "search" | "enter" | "done" | "go" | "next" | "previous" | "send"§exportparts?: stringform?: string§form Action?: string | ((formData: FormData) => void | Promise<void>)§form Enc Type?: string§form Method?: string§form No Validate?: boolean§form Target?: stringIf the menu item is a trigger for a submenu
height?: string | number§icon?:
| WithSlotShorthandValue<
{ as?: "span" } & Omit<
DetailedHTMLProps<HTMLAttributes<HTMLSpanElement>, HTMLSpanElement>,
"children",
> & { children?: any },
>
| nullIcon slot rendered before children content
id?: string§indicator?: NonNullable<
(
WithSlotShorthandValue<{ as?: "div" | undefined; } & Omit<DetailedHTMLProps<HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "children"> & { ...; }> | null
),
>The track and the thumb sliding over it indicating the on and off status of the Switch.
inert?: booleaninlist?: any§input?: { as?: "input" } & Omit<
DetailedHTMLProps<
InputHTMLAttributes<HTMLInputElement>,
HTMLInputElement,
>,
"children",
> & { children?: undefined }Hidden input that handles the Switch's functionality.
This is the PRIMARY slot: all native properties specified directly on the <Switch> tag will be applied to this
slot, except className and style, which remain on the root slot.
input Mode?: "none" | "text" | "search" | "tel" | "url" | "email" | "numeric" | "decimal"Hints at the type of data that might be entered by the user while editing the element or its contents
is?: stringSpecify that a standard HTML element should behave like a defined custom built-in element
item ID?: string§item Prop?: string§item Ref?: string§item Scope?: boolean§item Type?: string§key?: Key | null§label?:
| WithSlotShorthandValue<
Omit<ComponentProps<LabelSlots>, "required"> & {
disabled?: boolean;
required?: boolean | WithSlotShorthandValue<{ as?: "span" | undefined; } & Omit<DetailedHTMLProps<HTMLAttributes<HTMLSpanElement>, HTMLSpanElement>, "children"> & { ...; }> | null | undefined;
size?: "medium" | "small" | "large";
weight?: "regular" | "semibold";
} & RefAttributes<HTMLLabelElement>,
>
| nullThe Switch's label.
label Position?: "above" | "after" | "before"The position of the label relative to the Switch.
lang?: string§list?: string§max?: string | number§max Length?: number§min?: string | number§min Length?: number§multiple?: boolean§name?: string§nonce?: string§on Abort?: ReactEventHandler<HTMLInputElement> & ReactEventHandler<HTMLDivElement>§on Abort Capture?: ReactEventHandler<HTMLInputElement> & ReactEventHandler<HTMLDivElement>§on Animation End?: AnimationEventHandler<HTMLInputElement> & AnimationEventHandler<HTMLDivElement>§on Animation End Capture?: AnimationEventHandler<HTMLInputElement> & AnimationEventHandler<HTMLDivElement>§on Animation Iteration?: AnimationEventHandler<HTMLInputElement> & AnimationEventHandler<HTMLDivElement>§on Animation Iteration Capture?: AnimationEventHandler<HTMLInputElement> & AnimationEventHandler<HTMLDivElement>§on Animation Start?: AnimationEventHandler<HTMLInputElement> & AnimationEventHandler<HTMLDivElement>§on Animation Start Capture?: AnimationEventHandler<HTMLInputElement> & AnimationEventHandler<HTMLDivElement>§on Aux Click?: MouseEventHandler<HTMLInputElement> & MouseEventHandler<HTMLDivElement>§on Aux Click Capture?: MouseEventHandler<HTMLInputElement> & MouseEventHandler<HTMLDivElement>§on Before Input?: InputEventHandler<HTMLInputElement> & InputEventHandler<HTMLDivElement>§on Before Input Capture?: InputEventHandler<HTMLInputElement> & InputEventHandler<HTMLDivElement>§on Before Toggle?: ToggleEventHandler<HTMLInputElement> & ToggleEventHandler<HTMLDivElement>§on Blur?: FocusEventHandler<HTMLInputElement> & FocusEventHandler<HTMLDivElement>§on Blur Capture?: FocusEventHandler<HTMLInputElement> & FocusEventHandler<HTMLDivElement>§on Can Play?: ReactEventHandler<HTMLInputElement> & ReactEventHandler<HTMLDivElement>§on Can Play Capture?: ReactEventHandler<HTMLInputElement> & ReactEventHandler<HTMLDivElement>§on Can Play Through?: ReactEventHandler<HTMLInputElement> & ReactEventHandler<HTMLDivElement>§on Can Play Through Capture?: ReactEventHandler<HTMLInputElement> & ReactEventHandler<HTMLDivElement>§on Change: { ... }§on Change Capture?: ChangeEventHandler<HTMLInputElement, Element> & ChangeEventHandler<
HTMLDivElement,
Element,
>§on Click?: MouseEventHandler<HTMLInputElement>§on Click Capture?: MouseEventHandler<HTMLInputElement> & MouseEventHandler<HTMLDivElement>§on Composition End?: CompositionEventHandler<HTMLInputElement> & CompositionEventHandler<
HTMLDivElement,
>§on Composition End Capture?: CompositionEventHandler<HTMLInputElement> & CompositionEventHandler<
HTMLDivElement,
>§on Composition Start?: CompositionEventHandler<HTMLInputElement> & CompositionEventHandler<
HTMLDivElement,
>§on Composition Start Capture?: CompositionEventHandler<HTMLInputElement> & CompositionEventHandler<
HTMLDivElement,
>§on Composition Update?: CompositionEventHandler<HTMLInputElement> & CompositionEventHandler<
HTMLDivElement,
>§on Composition Update Capture?: CompositionEventHandler<HTMLInputElement> & CompositionEventHandler<
HTMLDivElement,
>§on Copy?: ClipboardEventHandler<HTMLInputElement> & ClipboardEventHandler<HTMLDivElement>§on Copy Capture?: ClipboardEventHandler<HTMLInputElement> & ClipboardEventHandler<HTMLDivElement>§on Cut?: ClipboardEventHandler<HTMLInputElement> & ClipboardEventHandler<HTMLDivElement>§on Cut Capture?: ClipboardEventHandler<HTMLInputElement> & ClipboardEventHandler<HTMLDivElement>§on Double Click?: MouseEventHandler<HTMLInputElement> & MouseEventHandler<HTMLDivElement>§on Double Click Capture?: MouseEventHandler<HTMLInputElement> & MouseEventHandler<HTMLDivElement>§on Drag?: DragEventHandler<HTMLInputElement> & DragEventHandler<HTMLDivElement>§on Drag Capture?: DragEventHandler<HTMLInputElement> & DragEventHandler<HTMLDivElement>§on Drag End?: DragEventHandler<HTMLInputElement> & DragEventHandler<HTMLDivElement>§on Drag End Capture?: DragEventHandler<HTMLInputElement> & DragEventHandler<HTMLDivElement>§on Drag Enter?: DragEventHandler<HTMLInputElement> & DragEventHandler<HTMLDivElement>§on Drag Enter Capture?: DragEventHandler<HTMLInputElement> & DragEventHandler<HTMLDivElement>§on Drag Exit?: DragEventHandler<HTMLInputElement> & DragEventHandler<HTMLDivElement>§on Drag Exit Capture?: DragEventHandler<HTMLInputElement> & DragEventHandler<HTMLDivElement>§on Drag Leave?: DragEventHandler<HTMLInputElement> & DragEventHandler<HTMLDivElement>§on Drag Leave Capture?: DragEventHandler<HTMLInputElement> & DragEventHandler<HTMLDivElement>§on Drag Over?: DragEventHandler<HTMLInputElement> & DragEventHandler<HTMLDivElement>§on Drag Over Capture?: DragEventHandler<HTMLInputElement> & DragEventHandler<HTMLDivElement>§on Drag Start?: DragEventHandler<HTMLInputElement> & DragEventHandler<HTMLDivElement>§on Drag Start Capture?: DragEventHandler<HTMLInputElement> & DragEventHandler<HTMLDivElement>§on Drop?: DragEventHandler<HTMLInputElement> & DragEventHandler<HTMLDivElement>§on Drop Capture?: DragEventHandler<HTMLInputElement> & DragEventHandler<HTMLDivElement>§on Duration Change?: ReactEventHandler<HTMLInputElement> & ReactEventHandler<HTMLDivElement>§on Duration Change Capture?: ReactEventHandler<HTMLInputElement> & ReactEventHandler<HTMLDivElement>§on Emptied?: ReactEventHandler<HTMLInputElement> & ReactEventHandler<HTMLDivElement>§on Emptied Capture?: ReactEventHandler<HTMLInputElement> & ReactEventHandler<HTMLDivElement>§on Encrypted?: ReactEventHandler<HTMLInputElement> & ReactEventHandler<HTMLDivElement>§on Encrypted Capture?: ReactEventHandler<HTMLInputElement> & ReactEventHandler<HTMLDivElement>§on Ended?: ReactEventHandler<HTMLInputElement> & ReactEventHandler<HTMLDivElement>§on Ended Capture?: ReactEventHandler<HTMLInputElement> & ReactEventHandler<HTMLDivElement>§on Error?: ReactEventHandler<HTMLInputElement> & ReactEventHandler<HTMLDivElement>§on Error Capture?: ReactEventHandler<HTMLInputElement> & ReactEventHandler<HTMLDivElement>§on Focus?: FocusEventHandler<HTMLInputElement> & FocusEventHandler<HTMLDivElement>§on Focus Capture?: FocusEventHandler<HTMLInputElement> & FocusEventHandler<HTMLDivElement>§on Got Pointer Capture?: PointerEventHandler<HTMLInputElement> & PointerEventHandler<HTMLDivElement>§on Got Pointer Capture Capture?: PointerEventHandler<HTMLInputElement> & PointerEventHandler<HTMLDivElement>§on Input?: InputEventHandler<HTMLInputElement> & InputEventHandler<HTMLDivElement>§on Input Capture?: InputEventHandler<HTMLInputElement> & InputEventHandler<HTMLDivElement>§on Invalid?: ReactEventHandler<HTMLInputElement> & ReactEventHandler<HTMLDivElement>§on Invalid Capture?: ReactEventHandler<HTMLInputElement> & ReactEventHandler<HTMLDivElement>§on Key Down?: KeyboardEventHandler<HTMLInputElement> & KeyboardEventHandler<HTMLDivElement>§on Key Down Capture?: KeyboardEventHandler<HTMLInputElement> & KeyboardEventHandler<HTMLDivElement>§on Key Press?: KeyboardEventHandler<HTMLInputElement> & KeyboardEventHandler<HTMLDivElement>on Key Press Capture?: KeyboardEventHandler<HTMLInputElement> & KeyboardEventHandler<HTMLDivElement>on Key Up?: KeyboardEventHandler<HTMLInputElement> & KeyboardEventHandler<HTMLDivElement>§on Key Up Capture?: KeyboardEventHandler<HTMLInputElement> & KeyboardEventHandler<HTMLDivElement>§on Load?: ReactEventHandler<HTMLInputElement> & ReactEventHandler<HTMLDivElement>§on Load Capture?: ReactEventHandler<HTMLInputElement> & ReactEventHandler<HTMLDivElement>§on Loaded Data?: ReactEventHandler<HTMLInputElement> & ReactEventHandler<HTMLDivElement>§on Loaded Data Capture?: ReactEventHandler<HTMLInputElement> & ReactEventHandler<HTMLDivElement>§on Loaded Metadata?: ReactEventHandler<HTMLInputElement> & ReactEventHandler<HTMLDivElement>§on Loaded Metadata Capture?: ReactEventHandler<HTMLInputElement> & ReactEventHandler<HTMLDivElement>§on Load Start?: ReactEventHandler<HTMLInputElement> & ReactEventHandler<HTMLDivElement>§on Load Start Capture?: ReactEventHandler<HTMLInputElement> & ReactEventHandler<HTMLDivElement>§on Lost Pointer Capture?: PointerEventHandler<HTMLInputElement> & PointerEventHandler<HTMLDivElement>§on Lost Pointer Capture Capture?: PointerEventHandler<HTMLInputElement> & PointerEventHandler<HTMLDivElement>§on Mouse Down?: MouseEventHandler<HTMLInputElement> & MouseEventHandler<HTMLDivElement>§on Mouse Down Capture?: MouseEventHandler<HTMLInputElement> & MouseEventHandler<HTMLDivElement>§on Mouse Enter?: MouseEventHandler<HTMLInputElement> & MouseEventHandler<HTMLDivElement>§on Mouse Leave?: MouseEventHandler<HTMLInputElement> & MouseEventHandler<HTMLDivElement>§on Mouse Move?: MouseEventHandler<HTMLInputElement> & MouseEventHandler<HTMLDivElement>§on Mouse Move Capture?: MouseEventHandler<HTMLInputElement> & MouseEventHandler<HTMLDivElement>§on Mouse Out?: MouseEventHandler<HTMLInputElement> & MouseEventHandler<HTMLDivElement>§on Mouse Out Capture?: MouseEventHandler<HTMLInputElement> & MouseEventHandler<HTMLDivElement>§on Mouse Over?: MouseEventHandler<HTMLInputElement> & MouseEventHandler<HTMLDivElement>§on Mouse Over Capture?: MouseEventHandler<HTMLInputElement> & MouseEventHandler<HTMLDivElement>§on Mouse Up?: MouseEventHandler<HTMLInputElement> & MouseEventHandler<HTMLDivElement>§on Mouse Up Capture?: MouseEventHandler<HTMLInputElement> & MouseEventHandler<HTMLDivElement>§on Paste?: ClipboardEventHandler<HTMLInputElement> & ClipboardEventHandler<HTMLDivElement>§on Paste Capture?: ClipboardEventHandler<HTMLInputElement> & ClipboardEventHandler<HTMLDivElement>§on Pause?: ReactEventHandler<HTMLInputElement> & ReactEventHandler<HTMLDivElement>§on Pause Capture?: ReactEventHandler<HTMLInputElement> & ReactEventHandler<HTMLDivElement>§on Play?: ReactEventHandler<HTMLInputElement> & ReactEventHandler<HTMLDivElement>§on Play Capture?: ReactEventHandler<HTMLInputElement> & ReactEventHandler<HTMLDivElement>§on Playing?: ReactEventHandler<HTMLInputElement> & ReactEventHandler<HTMLDivElement>§on Playing Capture?: ReactEventHandler<HTMLInputElement> & ReactEventHandler<HTMLDivElement>§on Pointer Cancel?: PointerEventHandler<HTMLInputElement> & PointerEventHandler<HTMLDivElement>§on Pointer Cancel Capture?: PointerEventHandler<HTMLInputElement> & PointerEventHandler<HTMLDivElement>§on Pointer Down?: PointerEventHandler<HTMLInputElement> & PointerEventHandler<HTMLDivElement>§on Pointer Down Capture?: PointerEventHandler<HTMLInputElement> & PointerEventHandler<HTMLDivElement>§on Pointer Enter?: PointerEventHandler<HTMLInputElement> & PointerEventHandler<HTMLDivElement>§on Pointer Leave?: PointerEventHandler<HTMLInputElement> & PointerEventHandler<HTMLDivElement>§on Pointer Move?: PointerEventHandler<HTMLInputElement> & PointerEventHandler<HTMLDivElement>§on Pointer Move Capture?: PointerEventHandler<HTMLInputElement> & PointerEventHandler<HTMLDivElement>§on Pointer Out?: PointerEventHandler<HTMLInputElement> & PointerEventHandler<HTMLDivElement>§on Pointer Out Capture?: PointerEventHandler<HTMLInputElement> & PointerEventHandler<HTMLDivElement>§on Pointer Over?: PointerEventHandler<HTMLInputElement> & PointerEventHandler<HTMLDivElement>§on Pointer Over Capture?: PointerEventHandler<HTMLInputElement> & PointerEventHandler<HTMLDivElement>§on Pointer Up?: PointerEventHandler<HTMLInputElement> & PointerEventHandler<HTMLDivElement>§on Pointer Up Capture?: PointerEventHandler<HTMLInputElement> & PointerEventHandler<HTMLDivElement>§on Progress?: ReactEventHandler<HTMLInputElement> & ReactEventHandler<HTMLDivElement>§on Progress Capture?: ReactEventHandler<HTMLInputElement> & ReactEventHandler<HTMLDivElement>§on Rate Change?: ReactEventHandler<HTMLInputElement> & ReactEventHandler<HTMLDivElement>§on Rate Change Capture?: ReactEventHandler<HTMLInputElement> & ReactEventHandler<HTMLDivElement>§on Reset?: ReactEventHandler<HTMLInputElement> & ReactEventHandler<HTMLDivElement>§on Reset Capture?: ReactEventHandler<HTMLInputElement> & ReactEventHandler<HTMLDivElement>§on Scroll?: UIEventHandler<HTMLInputElement> & UIEventHandler<HTMLDivElement>§on Scroll Capture?: UIEventHandler<HTMLInputElement> & UIEventHandler<HTMLDivElement>§on Scroll End?: UIEventHandler<HTMLInputElement> & UIEventHandler<HTMLDivElement>§on Scroll End Capture?: UIEventHandler<HTMLInputElement> & UIEventHandler<HTMLDivElement>§on Seeked?: ReactEventHandler<HTMLInputElement> & ReactEventHandler<HTMLDivElement>§on Seeked Capture?: ReactEventHandler<HTMLInputElement> & ReactEventHandler<HTMLDivElement>§on Seeking?: ReactEventHandler<HTMLInputElement> & ReactEventHandler<HTMLDivElement>§on Seeking Capture?: ReactEventHandler<HTMLInputElement> & ReactEventHandler<HTMLDivElement>§on Select?: ReactEventHandler<HTMLInputElement> & ReactEventHandler<HTMLDivElement>§on Select Capture?: ReactEventHandler<HTMLInputElement> & ReactEventHandler<HTMLDivElement>§on Stalled?: ReactEventHandler<HTMLInputElement> & ReactEventHandler<HTMLDivElement>§on Stalled Capture?: ReactEventHandler<HTMLInputElement> & ReactEventHandler<HTMLDivElement>§on Submit?: SubmitEventHandler<HTMLInputElement> & SubmitEventHandler<HTMLDivElement>§on Submit Capture?: SubmitEventHandler<HTMLInputElement> & SubmitEventHandler<HTMLDivElement>§on Suspend?: ReactEventHandler<HTMLInputElement> & ReactEventHandler<HTMLDivElement>§on Suspend Capture?: ReactEventHandler<HTMLInputElement> & ReactEventHandler<HTMLDivElement>§on Time Update?: ReactEventHandler<HTMLInputElement> & ReactEventHandler<HTMLDivElement>§on Time Update Capture?: ReactEventHandler<HTMLInputElement> & ReactEventHandler<HTMLDivElement>§on Toggle?: ToggleEventHandler<HTMLInputElement> & ToggleEventHandler<HTMLDivElement>§on Touch Cancel?: TouchEventHandler<HTMLInputElement> & TouchEventHandler<HTMLDivElement>§on Touch Cancel Capture?: TouchEventHandler<HTMLInputElement> & TouchEventHandler<HTMLDivElement>§on Touch End?: TouchEventHandler<HTMLInputElement> & TouchEventHandler<HTMLDivElement>§on Touch End Capture?: TouchEventHandler<HTMLInputElement> & TouchEventHandler<HTMLDivElement>§on Touch Move?: TouchEventHandler<HTMLInputElement> & TouchEventHandler<HTMLDivElement>§on Touch Move Capture?: TouchEventHandler<HTMLInputElement> & TouchEventHandler<HTMLDivElement>§on Touch Start?: TouchEventHandler<HTMLInputElement> & TouchEventHandler<HTMLDivElement>§on Touch Start Capture?: TouchEventHandler<HTMLInputElement> & TouchEventHandler<HTMLDivElement>§on Transition Cancel?: TransitionEventHandler<HTMLInputElement> & TransitionEventHandler<
HTMLDivElement,
>§on Transition Cancel Capture?: TransitionEventHandler<HTMLInputElement> & TransitionEventHandler<
HTMLDivElement,
>§on Transition End?: TransitionEventHandler<HTMLInputElement> & TransitionEventHandler<
HTMLDivElement,
>§on Transition End Capture?: TransitionEventHandler<HTMLInputElement> & TransitionEventHandler<
HTMLDivElement,
>§on Transition Run?: TransitionEventHandler<HTMLInputElement> & TransitionEventHandler<
HTMLDivElement,
>§on Transition Run Capture?: TransitionEventHandler<HTMLInputElement> & TransitionEventHandler<
HTMLDivElement,
>§on Transition Start?: TransitionEventHandler<HTMLInputElement> & TransitionEventHandler<
HTMLDivElement,
>§on Transition Start Capture?: TransitionEventHandler<HTMLInputElement> & TransitionEventHandler<
HTMLDivElement,
>§on Volume Change?: ReactEventHandler<HTMLInputElement> & ReactEventHandler<HTMLDivElement>§on Volume Change Capture?: ReactEventHandler<HTMLInputElement> & ReactEventHandler<HTMLDivElement>§on Waiting?: ReactEventHandler<HTMLInputElement> & ReactEventHandler<HTMLDivElement>§on Waiting Capture?: ReactEventHandler<HTMLInputElement> & ReactEventHandler<HTMLDivElement>§on Wheel?: WheelEventHandler<HTMLInputElement> & WheelEventHandler<HTMLDivElement>§on Wheel Capture?: WheelEventHandler<HTMLInputElement> & WheelEventHandler<HTMLDivElement>§part?: stringpattern?: string§persist On Click?: booleanClicking on the menu item will not dismiss an open menu
placeholder?: string§popover?: "" | "auto" | "manual" | "hint"§popover Target?: string§popover Target Action?: "toggle" | "show" | "hide"§prefix?: string§property?: string§radio Group?: string§read Only?: boolean§rel?: string§required?: boolean§resource?: string§results?: number§rev?: string§role?: AriaRole§root?: NonNullable<
(
WithSlotShorthandValue<{ as?: "div" | undefined; } & Omit<DetailedHTMLProps<HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "children"> & { ...; }> | null
),
>The root element of the Switch.
The root slot receives the className and style specified directly on the <Switch> tag.
All other native props will be applied to the primary slot: input.
secondary Content?:
| WithSlotShorthandValue<
{ as?: "span" } & Omit<
DetailedHTMLProps<HTMLAttributes<HTMLSpanElement>, HTMLSpanElement>,
"children",
> & { children?: any },
>
| nullSecondary content rendered opposite the primary content (e.g Shortcut text)
security?: string§size?: "medium" | "small"The size of the Switch.
slot?: string§spell Check?: Booleanish§src?: string§step?: string | number§style?: CSSPropertiesIcon slot that shows the indicator for a submenu
sub Text?:
| WithSlotShorthandValue<
{ as?: "span" } & Omit<
DetailedHTMLProps<HTMLAttributes<HTMLSpanElement>, HTMLSpanElement>,
"children",
> & { children?: any },
>
| nullAdditional descriptor to main content that creates a multiline layout
suppress Content Editable Warning?: boolean§suppress Hydration Warning?: boolean§tab Index?: number§title?: string§translate?: "yes" | "no"§type?: HTMLInputTypeAttribute§typeof?: string§unselectable?: "off" | "on"§value?: string | number | readonly string[]§vocab?: string§width?: string | number
React component. A menu item with a label and a switch
This is a Wrapper around FUI MenuItem and Switch to display controlled switch menu item because the FUI MenuItemSwitch cannot be controlled individually from the menu
For now the label needs to be passed in as children
See Fluent UI Docs for Switch and Fluent UI Docs for MenuItem