welcome-ui
Version:
Customizable design system with react • styled-components • styled-system and ariakit.
11 lines (10 loc) • 507 B
TypeScript
import { CheckboxProps } from '../Checkbox';
import { CreateWuiProps } from '../System';
import { Size } from './theme';
export type ToggleOptions = Omit<CheckboxProps, 'Component' | 'hasIcon' | 'iconPlacement' | 'indeterminate' | 'isClearable' | 'transparent'> & {
checkedIcon?: JSX.Element;
size?: Size;
uncheckedIcon?: JSX.Element;
};
export type ToggleProps = CreateWuiProps<'input', ToggleOptions>;
export declare const Toggle: import('../System').CreateWuiComponent<"input", ToggleProps>;