Skip to content

Checkbox

Jonathan Langlois edited this page Dec 2, 2020 · 4 revisions

Checkbox

Checkbox can be used as standalone or a child of a checkbox group (interchangeable with Checkbox.item)

Group Prop Type Description
Sizes mini boolean Sizing options intended to modify font-size and padding
tiny
small
medium
large
big
huge
Label label string label for the checkbox
Value value string value for the checkbox
Name name string name for the checkbox
Disabled disabled boolean disable checkbox

Expected behaviours in progressive enhancements

HTML

  • it displays the checkbox and submits the form data when the parent form is submitted.

HTML + CSS

  • it applies the theme styles; no additional functional enhancement.

HTML + CSS + JS

  • it support custom event handlers.

Clone this wiki locally