Pass Through documentation for Switch component
Some sections may not be visible due to the availability of the particular feature.
Defines passthrough(pt) options of Switch component.
| label | type | description |
|---|---|---|
| root | SwitchPassThroughType<HTMLAttributes<HTMLSpanElement>> | Used to pass attributes to the root's DOM element. |
| input | SwitchPassThroughType<HTMLAttributes<HTMLElement>> | Used to pass attributes to the input's DOM element. |
| control | SwitchPassThroughType<HTMLAttributes<HTMLSpanElement>> | Used to pass attributes to the control's DOM element. |
| thumb | SwitchPassThroughType<HTMLAttributes<HTMLSpanElement>> | Used to pass attributes to the thumb's DOM element. |
Defines passthrough(pt) options of SwitchControl component.
| label | type | description |
|---|---|---|
| root | SwitchControlPassThroughType<HTMLAttributes<HTMLDivElement>> | Used to pass attributes to the root's DOM element. |
Defines passthrough(pt) options of SwitchThumb component.
| label | type | description |
|---|---|---|
| root | SwitchThumbPassThroughType<HTMLAttributes<HTMLDivElement>> | Used to pass attributes to the root's DOM element. |