UNPKG

@useloops/design-system

Version:

The official React based Loops design system

30 lines (27 loc) 761 B
import { FunctionComponent } from 'react'; import { CheckboxProps } from '../Checkbox/Checkbox.js'; interface CheckboxGroupOption { label: string; value: string; exclusive?: boolean; } interface CheckboxGroupOther { label?: string; enabled?: boolean; placeholder?: string; name?: string; defaultValue?: string; } interface CheckboxGroupProps { options: CheckboxGroupOption[]; value: string[]; sizing?: CheckboxProps['sizing']; onChange: (arrayIds: string[]) => void; id: string; inputRef?: any; other?: CheckboxGroupOther; internalChange?: () => void; } declare const CheckboxGroup: FunctionComponent<CheckboxGroupProps>; export { CheckboxGroup as default }; export type { CheckboxGroupProps };