UNPKG

@snowball-tech/fractal

Version:

Fractal's (Snowball's design system) React component library based on RadixUI and PandaCSS

24 lines (21 loc) 708 B
import { CheckboxProps } from '@radix-ui/react-checkbox'; import { ReactNode } from 'react'; import { Colors, Variants } from './InputCheckbox.constants.js'; interface InputCheckboxProps extends Omit<CheckboxProps, 'asChild'> { checked?: CheckboxProps['checked']; children?: ReactNode; color?: `${Colors}`; defaultChecked?: CheckboxProps['defaultChecked']; disabled?: boolean; fullWidth?: boolean; id?: string; label?: string; labelAsDiv?: boolean; name?: string; readOnly?: boolean; required?: boolean; value?: string; variant?: `${Variants}`; onCheckedChange?: (checked: CheckboxProps['checked']) => void; } export type { InputCheckboxProps };