Static preview computed from the reference semantics; native targets render with platform controls.
API
Properties
Name
Type
Default
Binding
Description
label
string
required
input
Visible text and accessible name.
checked
enum(["unchecked", "checked", "mixed"])
required
controlled
Host-owned value. The component reads it and never assigns it.
disabled
boolean
false
input
—
States
Name
Type
Default
Interaction
hovered
boolean
false
hover
pressed
boolean
false
press
focus_visible
boolean
false
focus_visible
Events
Name
Payload
change
value = enum(["unchecked", "checked"])
Accessibility
Attribute
Value
role
checkbox
checked
prop.checked
disabled
prop.disabled
name
prop.label
Anatomy
rootstack
indicatorstack
checkmarkiconwhen = prop.checked == "checked"
squareiconwhen = prop.checked == "mixed"
labeltext
Examples
checkbox-checked-dark
✓ Verified by the reference semantics
Configuration
Properties
checked = "checked"
label = "Show hidden files"
Context
theme = "dark"
Expectations
Present: checkmark
Absent: square
Node values
Node
Attribute
Expected value
indicator
background
hex("#479ef5")
indicator
foreground
hex("#242424")
checkmark
size
dp(12)
Show hidden files
Static preview computed from the reference semantics; native targets render with platform controls.
checkbox-checked-light-hover
✓ Verified by the reference semantics
Configuration
Properties
checked = "checked"
label = "Show hidden files"
States
hovered = true
Expectations
Node values
Node
Attribute
Expected value
indicator
background
hex("#115ea3")
indicator
foreground
hex("#ffffff")
Show hidden files
Static preview computed from the reference semantics; native targets render with platform controls.
checkbox-checked-requests-change
✓ Verified by the reference semantics
Configuration
Properties
checked = "checked"
label = "Show hidden files"
Inputs
activation
Expectations
Events emitted: change
Present: checkmark
Show hidden files
Static preview computed from the reference semantics; native targets render with platform controls. The preview shows the configuration after the inputs or steps.
Static preview computed from the reference semantics; native targets render with platform controls. The preview shows the configuration after the inputs or steps.
Static preview computed from the reference semantics; native targets render with platform controls.
checkbox-mixed-light
✓ Verified by the reference semantics
Configuration
Properties
checked = "mixed"
label = "Select all"
Expectations
Present: square
Absent: checkmark
Node values
Node
Attribute
Expected value
indicator
background
color("srgb", [0, 0, 0], 0)
indicator
foreground
hex("#0f6cbd")
Select all
Static preview computed from the reference semantics; native targets render with platform controls.
checkbox-mixed-requests-change
✓ Verified by the reference semantics
Configuration
Properties
checked = "mixed"
label = "Select all"
Inputs
activation
Expectations
Events emitted: change
Present: square
Select all
Static preview computed from the reference semantics; native targets render with platform controls. The preview shows the configuration after the inputs or steps.
Static preview computed from the reference semantics; native targets render with platform controls.
checkbox-unchecked-requests-change
✓ Verified by the reference semantics
Configuration
Properties
checked = "unchecked"
label = "Show hidden files"
Inputs
activation
Expectations
Events emitted: change
Absent: checkmark, square
Show hidden files
Static preview computed from the reference semantics; native targets render with platform controls. The preview shows the configuration after the inputs or steps.