Skip to content
Inputs & Forms

Checkbox

client25.5 kB
@stellaria/nebula-webCheckboxProps

Preview

Props

11
PropTypeDefault

checked

boolean

—

color

ColorExtended

—

defaultChecked

booleanfalse

disabled

boolean

—

error

booleanfalse

indeterminate

booleanfalse

label

ReactNode

—

onChange

((checked: boolean) => void)

—

rootClassName

string

—

size

Size

—

value

string

—

Slot props

3

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

PropTypeDefault

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