DaisyUIComponents.Hero (DaisyUIComponents v0.7.6)

View Source

Hero component

https://daisyui.com/components/hero/

Summary

Functions

Renders a hero component.

Attributes

  • class (:string) - Defaults to nil.
  • Global attributes are accepted.

Slots

  • inner_block

Attributes

  • class (:string) - Defaults to nil.
  • Global attributes are accepted.

Slots

  • inner_block

Functions

hero(assigns)

Renders a hero component.

Examples

<.hero>
  <:content>
    <h1 class="text-5xl font-bold">Hello there</h1>
  </:content>
</.hero>

Attributes

  • class (:string) - Defaults to nil.
  • Global attributes are accepted.

Slots

  • content - Accepts attributes:
    • class (:any)
  • overlay - Accepts attributes:
    • class (:any)
  • inner_block

hero_content(assigns)

Attributes

  • class (:string) - Defaults to nil.
  • Global attributes are accepted.

Slots

  • inner_block

hero_overlay(assigns)

Attributes

  • class (:string) - Defaults to nil.
  • Global attributes are accepted.

Slots

  • inner_block