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