design-system
design-system copied to clipboard
[WIP] feat(Toggle): Implement base component
Related issue
Closes #3859
Overview
Created a Toggle component
Reason
To add a Toggle component to the design system
Work carried out
Example.
- [x] Created Toggle component with no Icons
- [x] Created Toggle component with Icons
- [x] Created a disabled Toggle component
- [ ] A bit of work I did not complete
Screenshot
https://github.com/user-attachments/assets/2b6f4685-60cf-450e-ac03-4fa0d063b55e
Developer notes
At the next major release, we should change the name of this component to Switch and change the current Switch component to ToggleGroup / Toggle
Deploy Preview for storybook-navy-digital-mod-uk ready!
| Name | Link |
|---|---|
| Latest commit | 04543e5707a57586fc4755e27a325f0a85c70f79 |
| Latest deploy log | https://app.netlify.com/sites/storybook-navy-digital-mod-uk/deploys/66e97bf8dd50b60008d92dfa |
| Deploy Preview | https://deploy-preview-3860--storybook-navy-digital-mod-uk.netlify.app |
| Preview on mobile | Toggle QR Code...Use your smartphone camera to open QR code link. |
To edit notification comments on pull requests, go to your Netlify site configuration.
Quality Gate passed
Issues
1 New issue
0 Accepted issues
Measures
0 Security Hotspots
81.7% Coverage on New Code
0.0% Duplication on New Code