UNPKG

welcome-ui

Version:

Customizable design system with react, typescript, tailwindcss and ariakit.

10 lines (9 loc) 362 B
import { ComponentProps } from 'react'; export interface CheckboxOptions { indeterminate?: boolean; variant?: Variant; } export type CheckboxProps = CheckboxOptions & Omit<ComponentProps<'input'>, 'onChange'> & { onChange?: (isChecked: boolean, e: React.MouseEvent<HTMLDivElement>) => void; }; export type Variant = 'danger' | 'success' | 'warning';