Make the current setting understandable
A toggle is useful for an immediate on/off setting. If several changes are saved together through a submit action, a checkbox may fit the form better. The label should describe the setting itself, so that “on” and “off” remain understandable without extra context.
Use the generator to establish the appearance, then adapt the exported markup and styles to your application. A preview demonstrates the visual treatment; it does not certify your final interaction. Check the implementation with real content, a narrow screen, and keyboard input before publishing.
Try the component in the code editor →