Search the design system

Components – legacy

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)

    // Less mixins
    .form-toggle-my-brand {
      .form-toggle-create-branding(...)
    }
    
    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

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
ComponentsCheckbox / Usage
ComponentsDate Picker / Usage

© DesignTech - AB Svenska Spel

What's newTerms of useAccessibility statementCookiesTeams channel [Internal]
@svs/ui version
2.3.0

Feedback

We always want to improve the Design System and would be thrilled to get your feedback.

Please share your wisdom with us.

Microsoft Teams [internal]

Designsystem@svenskaspel.se