UNPKG

@wix/design-system

Version:

@wix/design-system

31 lines (27 loc) 873 B
### 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. ### id - type: string - description: Assigns an unique identifier for the root element. ### skin - type: enum - description: Controls the skin of a toggle. ### size - type: enum - description: Controls the size of a toggle. ### checked - type: bool - description: Specifies whether toggle is checked. ### disabled - type: bool - description: Specifies whether toggle is disabled. ### onChange - type: func - 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.