Files
ui/docs/content/3.forms/7.toggle.md
Sébastien Chopin e59fe42cc9 docs: improve page descriptions and prev/next (#184)
Co-authored-by: Benjamin Canac <canacb1@gmail.com>
2023-05-19 10:33:09 +02:00

539 B

github, description, headlessui
github description headlessui
true Display a toggle field.
label to
Switch https://headlessui.com/vue/switch

Usage

::component-card ::

Icon

Use any icon from Iconify 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

Preset

:component-preset