Toggle [Switch]
- Switching between states component.
Default
<Toggle size="medium" />
With labels [replacing PHPR legacy way]
<Toggle checkedChildren="checked" unCheckedChildren="unchecked" />
Disabled
<Toggle size="medium" disabled />
Loading
<Toggle size="medium" loading />
Sizes
<Toggle size="large" />
<Toggle size="medium" />
<Toggle size="small" />
Automate Tests
Unit
npm run test:unit:file toggle
Integration
TODO
Automated tests
Unit
Command : npm run test:unit
Test file location : /tests/input.toggle.test.tsx
npm run test:unit:file toggle
Integration
Command : ???
Test file location : ???
???