Switch Pass Through

Pass Through documentation for Switch component

Viewer#

Some sections may not be visible due to the availability of the particular feature.

Switch PT Options#

Defines passthrough(pt) options of Switch component.

labeltypedescription
rootSwitchPassThroughType<HTMLAttributes<HTMLSpanElement>>Used to pass attributes to the root's DOM element.
inputSwitchPassThroughType<HTMLAttributes<HTMLElement>>Used to pass attributes to the input's DOM element.
controlSwitchPassThroughType<HTMLAttributes<HTMLSpanElement>>Used to pass attributes to the control's DOM element.
thumbSwitchPassThroughType<HTMLAttributes<HTMLSpanElement>>Used to pass attributes to the thumb's DOM element.

SwitchControl PT Options#

Defines passthrough(pt) options of SwitchControl component.

labeltypedescription
rootSwitchControlPassThroughType<HTMLAttributes<HTMLDivElement>>Used to pass attributes to the root's DOM element.

SwitchThumb PT Options#

Defines passthrough(pt) options of SwitchThumb component.

labeltypedescription
rootSwitchThumbPassThroughType<HTMLAttributes<HTMLDivElement>>Used to pass attributes to the root's DOM element.