View Source DaisyUIComponents.Toggle (DaisyUIComponents v0.7.1)

Stat component

https://daisyui.com/components/toggle

Summary

Functions

Attributes

  • class (:any) - Defaults to nil.
  • color (:string) - Must be one of "primary", "secondary", "accent", "info", "success", "warning", or "error".
  • size (:string) - Must be one of "xs", "sm", "md", or "lg".
  • Global attributes are accepted. Supports all globals plus: ["checked"].

Functions

toggle(assigns)

Attributes

  • class (:any) - Defaults to nil.
  • color (:string) - Must be one of "primary", "secondary", "accent", "info", "success", "warning", or "error".
  • size (:string) - Must be one of "xs", "sm", "md", or "lg".
  • Global attributes are accepted. Supports all globals plus: ["checked"].