UNPKG

@material-ui/core

Version:

React components that implement Google's Material Design.

25 lines (20 loc) 638 B
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; size?: 'small' | 'medium'; } export type SwitchClassKey = | SwitchBaseClassKey | 'switchBase' | 'colorPrimary' | 'colorSecondary' | 'sizeSmall' | 'thumb' | 'track'; declare const Switch: React.ComponentType<SwitchProps>; export default Switch;