chore(Toggle)!: rename icons to onIcon / offIcon for consistency

This commit is contained in:
Benjamin Canac
2023-05-29 21:38:51 +02:00
parent 1ebaa5aa00
commit 8ee2ac10e7
3 changed files with 15 additions and 15 deletions

View File

@@ -13,16 +13,16 @@ headlessui:
### 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}`.
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`.
::component-card
---
props:
iconOn: 'i-heroicons-check-20-solid'
iconOff: 'i-heroicons-x-mark-20-solid'
onIcon: 'i-heroicons-check-20-solid'
offIcon: 'i-heroicons-x-mark-20-solid'
excludedProps:
- iconOn
- iconOff
- onIcon
- offIcon
---
::