mirror of
https://github.com/ArthurDanjou/ui.git
synced 2026-01-15 12:39:35 +01:00
623 B
623 B
github, description, headlessui
| github | description | headlessui | ||||
|---|---|---|---|---|---|---|
| true | Display a toggle field. |
|
Usage
::component-card ::
Icon
Use any icon from Iconify 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: onIcon: 'i-heroicons-check-20-solid' offIcon: 'i-heroicons-x-mark-20-solid' excludedProps:
- onIcon
- offIcon
::
Props
:component-props
Preset
:component-preset