Inputs & Forms
Checkbox
client24.5 kB
@stellaria/nebula-webCheckboxPropsPreview
Props
11| Prop | Type | Default |
|---|---|---|
checked | boolean | — |
color | ColorExtended | — |
defaultChecked | boolean | false |
disabled | boolean | — |
error | boolean | false |
indeterminate | boolean | false |
label | ReactNode | — |
onChange | ((checked: boolean) => void) | — |
rootClassName | string | — |
size | Size | — |
value | string | — |
Slot props
3Each one spreads over an inner element, so you can restyle a region without forking the component.
| Prop | Type | Default |
|---|---|---|
indicatorProps The visual box. The native input is separate and still receives `className`. | BoxSlotProps | — |
labelProps Label next to the box. | TextSlotProps | — |
markProps The mark inside: a tick, or a dash when indeterminate. | GlyphProps | — |
Also accepts
On top of its own props, this component forwards these groups.
HTML attributes · 301Style props · 127