Skip to main content

Checkbox

The <Checkbox> component is a reusable and customizable input element.

Example

Props

NameDescriptionType
classNameAdditional classes for styling the checkboxString
childrenOptional content rendered next to the checkboxReact.ReactNode
refForwarded reference to the input elementReact.Ref<HTMLInputElement>
...propsAdditional input properties from HTML attributesHTMLInputAttributes

Customization

The approach for customization will vary depending on whether the customization is intended to be global for all consumers of the UI component or only as an override for a particular instance.

  • If the customization is necessary for all use cases, update the component source code in the UI library package directly.
  • Otherwise, pass className overrides. Class overrides can be applied to all sub-components.