We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
DCheckboxList
DCheckboxItem
1 parent 8d02c08 commit ee94f54Copy full SHA for ee94f54
1 file changed
packages/ui/src/components/checkbox/CheckboxGroup.tsx
@@ -9,15 +9,15 @@ import { useFormControl } from '../form';
9
import { useComponentConfig, usePrefixConfig } from '../root';
10
import { DCheckbox } from './Checkbox';
11
12
-export interface DCheckboxList<V extends DId> {
+export interface DCheckboxItem<V extends DId> {
13
label: React.ReactNode;
14
value: V;
15
disabled?: boolean;
16
}
17
export interface DCheckboxGroupProps<V extends DId> extends Omit<React.HTMLAttributes<HTMLDivElement>, 'children'> {
18
dFormControl?: DFormControl;
19
dModel?: V[];
20
- dList: DCheckboxList<V>[];
+ dList: DCheckboxItem<V>[];
21
dDisabled?: boolean;
22
dVertical?: boolean;
23
onModelChange?: (values: V[]) => void;
0 commit comments