Properties
Property | Attribute | Description | Type | Default |
checked | checked | Whether the toggle-check is checked. | boolean | false |
disabled | disabled | The disabled prop for the disabled state. | boolean | false |
iconName | icon-name | The svg name for the true state - default -> 'tick-small' | string | 'tick-small' |
labelPosition | label-position | The label position relative to the toggle. Defaults to 'after' | "after" | "before" | 'after' |
name | name | Name of the toggle-check. | string | undefined |
required | required | The required prop for the required state. | boolean | false |
size | size | Size variant, either m or s. | "m" | "s" | 's' |
value | value | Value of toggle-check. | string | undefined |
Events
Event | Description | Type |
didChange | [DEPRECATED] only used for React. Will probably be removed once React 19 is available.
| CustomEvent<any> |
Dependencies
Depends on
Graph
graph TD;
sbb-toggle-check --> sbb-icon
style sbb-toggle-check fill:#f9f,stroke:#333,stroke-width:4px
Demo Example
Nein Ja
Default Anderes
Danach Davor
White Milk Iron Charcoal Black
Mehr Beispiele auf Storybook Impressum Contatto Impostazioni dei cookie