DaisyUIComponents.Dropdown (DaisyUIComponents v0.8.6)
View SourceDropdown component
Summary
Functions
Renders a dropdown
Functions
Renders a dropdown
Examples
<.dropdown>
<div tabindex="0" class="btn m-1">open or close</div>
<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)