Toggle
yarn add @freshworks/toggle
Description
Usage
{{nucleus-toggle}}
Playground
Properties
{{nucleus-toggle
size="medium"
}}
Guidelines
✅Do's
- Use toggles with labels unless the title is straightforward so the user knows exactly what action he is doing.
- In case of multiple toggles, align them well so that it is easier to find them on the page.
🚫Dont's
- Do not redirect the user to a different page on change of the toggle state.
- Avoid using multiple toggles on the same page, as much as possible.
- Toggle actions work immediately. Do not enable them only after a clicking confirm button.
Previous
Toast message
Next
Tabs