DaisyUIComponents.Dropdown (DaisyUIComponents v0.7.6)
View SourceDropdown component
Summary
Functions
Renders a dropdown
Functions
Renders a dropdown
Examples
<.dropdown>
<summary class="btn m-1">open or close</summary>
<ul class="menu dropdown-content bg-base-100 rounded-box z-[1] w-52 p-2 shadow">
<li><a>Item 1</a></li>
<li><a>Item 2</a></li>
</ul>
</.dropdown>
Attributes
class
(:string
) - Defaults tonil
.direction
(:string
) - Must be one of"top"
,"bottom"
,"left"
, or"right"
.align
(:string
) - Must be one of"end"
.hover
(:boolean
) - Defaults tonil
.open
(:boolean
) - Defaults tonil
.- Global attributes are accepted.
Slots
inner_block
(required)