Skip to main content

Switch

Use the Switch to let users toggle a setting between on and off. The change takes effect immediately without requiring a separate confirmation step.

SwitchProps

Signature:

export declare type SwitchProps = <, (checked: , event?: <>) => | , > & & & & & & { /** * Internal: associates this control with a `_Form` rendered outside its * React subtree via the native `form` attribute. Unstable. * @internal */ _form?: ; /** * Internal: routes this control's native/Strato validation messages to the * field outlet (default), the enclosing form's outlet, or both. Unstable. * @internal */ _messageTarget?: | []; /** The used as the value of the switch when submitting it in a form, if the switch is toggled on. */ formValue?: ; };
Still have questions?
Find answers in the Dynatrace Community