Checkbox
Container properties
All component configurations support Container properties at the first level.
Component properties
| Name | Type | Default | Supports Variable Pattern | Description |
|---|---|---|---|---|
| className | string | ✔️ | The className of the component | |
| style | object | The style of the component | ||
| options | Array<{ value: string | number, label: string }> | Optional | ||
| direction | 'horizontal' | 'vertical' | Direction of Checkbox elements | ||
| gap | 'small' | 'middle' | 'large' | number | 'small' | Spacing between Checkboxes |
All the remaining componentsProps will be passed to the component root element(Checkbox.Group)。
JS API
The interface obtained through formApi.getFieldApi() is as follows:
| Name | Type | Description |
|---|---|---|
| node | HTML Element | The root DOM element of the component |