fix(Toggle): wrong icon-off positioning

This commit is contained in:
Benjamin Canac
2023-05-10 18:14:21 +02:00
parent 00b444b3eb
commit d5471f4d37
2 changed files with 16 additions and 1 deletions

View File

@@ -10,6 +10,21 @@ headlessui:
::component-card
::
### Icon
Use any icon from [Iconify](https://icones.js.org) by setting the `icon-on` and `icon-off` props by using this pattern: `i-{collection_name}-{icon_name}`.
::component-card
---
props:
iconOn: 'i-heroicons-check-20-solid'
iconOff: 'i-heroicons-x-mark-20-solid'
excludedProps:
- iconOn
- iconOff
---
::
## Props
:component-props