Skip to content
Inputs & Forms

ColorPicker

client49.75 kB
@stellaria/nebula-webColorPickerProps

Preview

Props

12
PropTypeDefault

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

2

Each one spreads over an inner element, so you can restyle a region without forking the component.

PropTypeDefault

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