@wix/design-system
Version:
@wix/design-system
33 lines (30 loc) • 1.01 kB
Markdown
### dataHook
- type: string
- description: Applies a data-hook HTML attribute that can be used in the tests.
### className
- type: string
- description: Specifies a CSS class name to be appended to the component’s root element.
- internal
### id
- type: string
- description: Assigns an unique identifier for the root element.
### skin
- type: "standard" | "error" | "success" | "urgent"
- description: Controls the skin of a toggle.
- default: 'standard'
### size
- type: "small" | "medium" | "large"
- description: Controls the size of a toggle.
- default: 'large'
### checked
- type: boolean
- description: Specifies whether toggle is checked.
### disabled
- type: boolean
- description: Specifies whether toggle is disabled.
### onChange
- type: ChangeEventHandler
- description: Defines a callback function which is called every time toggle state changes.
### tabIndex
- type: number
- description: Indicates that element can be focused and where it participates in sequential keyboard navigation.