Component Catalog

CheckBox

Toggle input with label and boolean value.

A2UI → Nuxt UI Mapping

A2UI PropertyNuxt UI Result
labelUCheckbox label text
valueUCheckbox checked state

Example JSONL

{"version":"v0.10","createSurface":{"surfaceId":"cb_demo","catalogId":"standard"}}
{"version":"v0.10","updateComponents":{"surfaceId":"cb_demo","components":[
  {"id":"root","component":"Column","children":["terms","marketing"]},
  {"id":"terms","component":"CheckBox","label":"I agree to the terms and conditions","value":false},
  {"id":"marketing","component":"CheckBox","label":"Send me marketing emails","value":true}
]}}

Properties

PropertyTypeRequiredDefaultDescription
labelstringCheckbox label text
valuebooleanfalseWhether the checkbox is checked

Rendering Details

  • Maps directly to Nuxt UI's UCheckbox component
  • Uses a ref for reactive checked state
  • Label renders inline next to the checkbox

Try It

Copy the JSONL above and paste it in the Playground Paste tab.