feat(Toggle): add size prop (#950)

This commit is contained in:
Conner Blanton
2023-11-11 15:42:05 -06:00
committed by GitHub
parent c55871b844
commit 3c71bf36b0
3 changed files with 74 additions and 8 deletions

View File

@@ -26,6 +26,17 @@ props:
---
::
### Size
Use the `size` prop to change the size of the Toggle.
::component-card
---
props:
size: 'md'
---
::
### Icon
Use any icon from [Iconify](https://icones.js.org) by setting the `on-icon` and `off-icon` props by using this pattern: `i-{collection_name}-{icon_name}` or change it globally in `ui.toggle.default.onIcon` and `ui.toggle.default.offIcon`.