View Source DaisyUIComponents.Swap (DaisyUIComponents v0.6.0)

Select component

https://daisyui.com/components/swap

Summary

Functions

Attributes

  • class (:any) - Defaults to nil.
  • animation (:string) - Must be one of "flip", or "rotate".
  • Global attributes are accepted.

Slots

  • swap_on - the child element that should be visible when checkbox is checked or when swap is active. Accepts attributes:
    • type (:string) - Must be one of "label", or "icon".
    • name (:string) (required)
  • swap_off - The child element that should be visible when checkbox is not checked or when swap is not active. Accepts attributes:
    • type (:string) - Must be one of "label", or "icon".
    • name (:string) (required)

Attributes

  • class (:any) - Defaults to nil.
  • mode (:string) (required) - Must be one of "on", or "off".
  • name (:string) (required)
  • type (:string) - Defaults to "label".

Functions

swap(assigns)

Attributes

  • class (:any) - Defaults to nil.
  • animation (:string) - Must be one of "flip", or "rotate".
  • Global attributes are accepted.

Slots

  • swap_on - the child element that should be visible when checkbox is checked or when swap is active. Accepts attributes:
    • type (:string) - Must be one of "label", or "icon".
    • name (:string) (required)
  • swap_off - The child element that should be visible when checkbox is not checked or when swap is not active. Accepts attributes:
    • type (:string) - Must be one of "label", or "icon".
    • name (:string) (required)

swap_mode(assigns)

Attributes

  • class (:any) - Defaults to nil.
  • mode (:string) (required) - Must be one of "on", or "off".
  • name (:string) (required)
  • type (:string) - Defaults to "label".