anvil/striker-ui/types/SwitchWithLabel.d.ts

14 lines
438 B
TypeScript
Raw Normal View History

2023-02-17 05:55:25 +00:00
type SwitchWithLabelOptionalProps = {
baseInputProps?: import('@mui/material').InputBaseComponentProps;
formControlLabelProps?: import('@mui/material').FormControlLabelProps;
2023-02-17 05:55:25 +00:00
switchProps?: import('@mui/material').SwitchProps;
};
type SwitchWithLabelProps = SwitchWithLabelOptionalProps &
Pick<
import('@mui/material').SwitchProps,
'checked' | 'id' | 'name' | 'onChange'
> & {
label: import('react').ReactNode;
};