@lunit/oui
Version:
Lunit Oncology UI components
19 lines (18 loc) • 801 B
TypeScript
/// <reference types="react" />
import type { BoxProps, Color, SwitchProps as MuiSwitchProps } from '@mui/material';
export interface ToggleProps extends Omit<BoxProps<'span'>, 'onChange' | 'onChangeCapture'> {
value?: MuiSwitchProps['value'];
name?: MuiSwitchProps['name'];
checked?: MuiSwitchProps['checked'];
defaultChecked?: MuiSwitchProps['defaultChecked'];
disabled?: MuiSwitchProps['disabled'];
required?: MuiSwitchProps['required'];
onChange?: MuiSwitchProps['onChange'];
onChangeCapture?: MuiSwitchProps['onChangeCapture'];
inputProps?: MuiSwitchProps['inputProps'];
inputRef?: MuiSwitchProps['inputRef'];
indeterminate?: boolean;
label?: string;
labelPlacement?: 'left' | 'right';
toggleColor?: React.CSSProperties['color'] | Color;
}