(this page was created automatically. In case of formatting issues, please visit the official Wiki Page)

Checkbox

Overview

Checkbox Overview

Specs

Tokens

Token Description
displayName Sets the display name of the component shown in the structure panel.
labelTranslations Sets the label text displayed next to the checkbox, with support for multiple languages.
disabled Determines whether the checkbox is interactive.
value Sets the default checked state of the checkbox.
readonly Controls whether the field is in read-only mode.
defaultValue Sets an initial value for the checkbox when first loaded.
saveInLocalStorage Enables persisting the checkbox state in browser's local storage.
dataField Specifies the form field name where the checkbox value will be stored.
controlsRequestType Specifies how the checkbox data should be included in API requests.
validation Configures validation rules for the checkbox.
required Validation rule: blocks form submission unless the checkbox is checked.
requiredTrue Validation rule: specifically requires the checkbox to be checked (true).
events Configures the events that the component can trigger and respond to.
ON_VALUE_CHANGE (Events) Event triggered when the checkbox is toggled.
ON_INIT_BASED_ON_USER_VIEW (Events) Event triggered when the component is initialized in user view.
ON_INIT (Events) Event triggered when the component is initialized.
ON_DESTROY (Events) Event triggered when the component is removed from the DOM.

Structure

(Configured in General Properties)

(Configured in Visual Properties)

Non-Visual Structure
(Configured in Non-Visual Properties)

Styling

(Configured in Visual Properties)

Actions & Variants

(Configured in Visual Properties)

(Configured in Events)

Validation

(Configured in Validation)

Notice upon missing required field

Links

Figma: https://www.figma.com/design/yck1tcUXgdQ5aYX6iUAwrO/GE---Astronaut-Design-System?node-id=11523-164008&t=iosNC2AkSTGs5lMh-1 Live style guide: https://e1-dev.k8s.myapp.de/live-style-guide/id3/6-checkbox

Guidelines

Usage

Sizing & Layout

Data-Driven / Conditional Behavior

Dos & Don’ts

Do Don’t Article setting(s)
Use validation.requiredTrue for explicit consent requirements. Rely on helper text alone to imply consent. validation.requiredTrue
Bind the value to a stable field name and choose the right transport. Leave the field unbound or send it via an unexpected channel. dataField, controlsRequestType
Initialize and reconcile defaults at mount, then keep them stable. Change defaults mid-session, causing unexpected flips. defaultValue, ON_INIT
Trigger downstream logic directly on user toggle. Poll the value instead of responding to events. ON_VALUE_CHANGE

Accessibility