DaisyUIComponents.Label (DaisyUIComponents v0.8.4)

View Source

Label component

https://daisyui.com/components/label/

Summary

Functions

Renders a Label

Functions

label(assigns)

Renders a Label

Examples

<.label type="input" text="My Label">
  <.input type="text" placeholder="URL" />
</.label>

Attributes

  • class (:string) - Defaults to nil.
  • for (:string) - Defaults to nil.
  • type (:string) - Defaults to "label".
  • position (:string) - Must be one of "start", or "end".
  • text (:string) - Defaults to nil.
  • Global attributes are accepted.

Slots

  • inner_block