UNPKG

679 BTypeScriptView Raw
1import * as React from 'react';
2import { StandardProps } from '..';
3import { SwitchBaseProps, SwitchBaseClassKey } from '../internal/SwitchBase';
4
5export interface CheckboxProps
6 extends StandardProps<SwitchBaseProps, CheckboxClassKey, 'checkedIcon' | 'color' | 'icon'> {
7 checkedIcon?: React.ReactNode;
8 color?: 'primary' | 'secondary' | 'default';
9 icon?: React.ReactNode;
10 indeterminate?: boolean;
11 indeterminateIcon?: React.ReactNode;
12 size?: 'small' | 'medium';
13}
14
15export type CheckboxClassKey =
16 | SwitchBaseClassKey
17 | 'indeterminate'
18 | 'colorPrimary'
19 | 'colorSecondary';
20
21declare const Checkbox: React.ComponentType<CheckboxProps>;
22
23export default Checkbox;