Hero Image

Components

Checkbox

Checkbox comes in two variants: Standard and as buttons in group.

Branding

Checkboxes and radios has support for custom branding.

How to generate and implement new branding

  • Internal use (Trinidad)

Properties

Checkbox

Prop nameTypeDefault ValueDescription
namestring`checkbox-${Math.random()}[]`
idstring`checkbox_${name}_${value ?? Math.random()}`
noLabelboolfalse
brandingstring
checkedbool
childrennode
classNamestring
classesstring
dataarrayOf
defaultCheckedbool
disabledbool
inlinebool
labelPropsshape
minWidthstring
onChangefunc
valueunion

Accessibility

This component has been validated to meet the WCAG 2.1 AA accessibility guidelines.

Read more about WCAG 2.1 AA.

Less Mixins for trinidad users

To generate a new theme for checkboxes / radios:

  .form-toggle-stryktipset {
    .form-toggle-create-theme(...)
  }

  Params:
  @default              : Prominent Color
  @default-text         : Prominent Text Color
  @selected             : Base fill color on Selected
  @selected-text        : Text on selected color
  @button-fill          : Button base color
  @disabled-fill        : Disabled base color
  @disabled-text        : Disabled text-color
  @group-border:        : Border around groups
  @group-button:        : Button background in group