Skip to content

Checkbox - Frameworks

Checkboxes allow users to select one or more options from a number of choices.

AndroidreleasediOSreleasedReactreleasedVuereleasedWebreleased

Web

Variants

Default

html
<w-checkbox name="foobar" value="foo">Check me</w-checkbox>

Invalid

html
<w-checkbox name="invalidfoo" value="bar" invalid="">Invalid checkbox</w-checkbox>

Disabled

html
<w-checkbox name="disabledfoo" value="bar" disabled="">Disabled checkbox</w-checkbox>

Bunch Of Checkboxes

html
<w-checkbox-group>
  <w-checkbox name="group" value="foo">Foo</w-checkbox>
  <w-checkbox name="group" value="bar">Bar</w-checkbox>
</w-checkbox-group>

Props

NameTypeDefaultDescription
namestring""The name of the checkbox, submitted as a name/value pair with form data.
valuestringnullThe value of the checkbox, submitted as a name/value pair with form data.

Questions?

Feel free to ask any questions on usage in the Warp DS Slack channel: #warp-design-system