@lunit/oui
Version:
Lunit Oncology UI components
18 lines (17 loc) • 785 B
TypeScript
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?: React.InputHTMLAttributes<HTMLInputElement>;
inputRef?: React.Ref<HTMLInputElement>;
indeterminate?: boolean;
label?: string;
labelPlacement?: 'left' | 'right';
toggleColor?: React.CSSProperties['color'] | Color;
}