UNPKG

@etsoo/materialui

Version:

TypeScript Material-UI Implementation

29 lines (28 loc) 591 B
import { FormControlLabelProps } from "@mui/material/FormControlLabel"; /** * Switch props */ export interface SwitchProps extends Omit<FormControlLabelProps, "control"> { /** * Value, default 'on' */ value?: string; /** * Is the field read only? */ readOnly?: boolean; /** * Size */ size?: "small" | "medium"; /** * Display as Checkbox */ checkbox?: boolean; } /** * Switch * @param props Props * @returns Component */ export declare function Switch(props: SwitchProps): import("react/jsx-runtime").JSX.Element;