1 | import * as React from "react";
|
2 | import * as StyledSystem from "styled-system";
|
3 | import { BoxProps } from "../Box";
|
4 | import { ICheckbox } from "../Checkbox";
|
5 | import { Omit } from "../common-types";
|
6 |
|
7 | export interface ICheckboxGroup {
|
8 | |
9 |
|
10 |
|
11 | id?: ICheckbox["id"];
|
12 | |
13 |
|
14 |
|
15 | name?: ICheckbox["name"];
|
16 | |
17 |
|
18 |
|
19 | children?: React.ReactNode;
|
20 | |
21 |
|
22 |
|
23 | defaultValue?: Array<ICheckbox["value"]>;
|
24 | |
25 |
|
26 |
|
27 | value?: Array<ICheckbox["value"]>;
|
28 | |
29 |
|
30 |
|
31 | onChange?: (value: Array<ICheckbox["value"]>) => void;
|
32 | |
33 |
|
34 |
|
35 | spacing?: StyledSystem.MarginProps["margin"];
|
36 | |
37 |
|
38 |
|
39 | isInline?: boolean;
|
40 | |
41 |
|
42 |
|
43 | variantColor?: ICheckbox["variantColor"];
|
44 | |
45 |
|
46 |
|
47 | size?: ICheckbox["size"];
|
48 | }
|
49 |
|
50 | export type CheckboxGroupProps = ICheckboxGroup &
|
51 | Omit<BoxProps, "onChange" | "size">;
|
52 | declare const CheckboxGroup: React.FC<CheckboxGroupProps>;
|
53 | export default CheckboxGroup;
|