Inputs & Forms
ColorPicker
client48.75 kB
@stellaria/nebula-webColorPickerPropsPreview
Props
12| Prop | Type | Default |
|---|---|---|
className | string | — |
defaultValue | string | — |
disabled | boolean | — |
field | NebulaField<string> | — |
format | ColorFormat | — |
label | ReactNode | — |
labels | ColorPickerLabels | — |
onChange | ((value: string) => void) | — |
size | Size | — |
swatches | readonly string[] | — |
value | string | — |
withAlpha | boolean | — |
Slot props
2Each one spreads over an inner element, so you can restyle a region without forking the component.
| Prop | Type | Default |
|---|---|---|
swatchesProps The swatch row. Only rendered with `swatches`. | BoxSlotProps | — |
swatchProps Every swatch. It spreads over ALL of them. Its `background` is written AFTER the slot, because it is the colour it represents; everything else — size, radius, border — can be adjusted from here. | BoxSlotProps | — |
Also accepts
On top of its own props, this component forwards these groups.
Style props · 127