forgeplus-react/node_modules/material-ui/Switch/Switch.d.ts

24 lines
608 B
TypeScript

import * as React from 'react';
import { StandardProps } from '..';
import { SwitchBaseProps, SwitchBaseClassKey } from '../internal/SwitchBase';
export interface SwitchProps
extends StandardProps<SwitchBaseProps, SwitchClassKey, 'checkedIcon' | 'color' | 'icon'> {
checkedIcon?: React.ReactNode;
color?: 'primary' | 'secondary' | 'default';
icon?: React.ReactNode;
}
export type SwitchClassKey =
| SwitchBaseClassKey
| 'bar'
| 'icon'
| 'iconChecked'
| 'switchBase'
| 'colorPrimary'
| 'colorSecondery';
declare const Switch: React.ComponentType<SwitchProps>;
export default Switch;