Switch
A control that allows the user to toggle between checked and not checked.
Installation
Usage
<Switch />Description
Focus is shared across devices, and turns off when you leave the app.
Choice Card
Card-style selection where FieldLabel wraps the entire Field for a clickable card pattern.
Disabled
Add the Disabled parameter to the Switch component to disable the switch. Add the data-disabled parameter to the Field component for styling.
Invalid
Add the aria-invalid parameter to the Switch component to indicate an invalid state. Add the data-invalid parameter to the Field component for styling.
You must accept the terms and conditions to continue.
Size
Use the Size parameter to change the size of the switch.
RTL
To enable RTL support in Blazix, see the RTL configuration guide.
Translated with AI for the demo, so it may have mistakes.
يتم مشاركة التركيز عبر الأجهزة، ويتم إيقاف تشغيله عند مغادرة التطبيق.
API Reference
Switch
Other attributes are passed to the element it renders.