UNPKG

monday-ui-react-core

Version:

Official monday.com UI resources for application development in React.js

20 lines (19 loc) 726 B
import { ChangeEvent, ReactElement } from "react"; import { VibeComponent, VibeComponentProps } from "../../types"; import { MockToggleProps } from "../Toggle/MockToggle"; export interface SwitchProps extends VibeComponentProps { name?: string; value?: string; role?: string; disabled?: boolean; ariaLabel?: string; ariaLabelledBy?: string; checked?: boolean; inputClassName?: string; onChange?: (value: boolean, event: ChangeEvent<HTMLInputElement>) => void; ariaControls?: string; defaultChecked?: boolean; children?: ReactElement<MockToggleProps>; wrapperClassName?: string; } export declare const Switch: VibeComponent<SwitchProps, HTMLInputElement>;