ZoonkWeb.Components.Dropdown (Zoonk v0.1.0-dev)
View SourceDropdown components.
Summary
Functions
Attributes
label
(:string
) (required) - Label for the dropdown.
Slots
inner_block
(required) - The inner block of the dropdown.
Attributes
position
(:atom
) - Position of the dropdown content. Defaults to:right
. Must be one of:left
, or:right
.
Slots
inner_block
(required) - The inner block of the dropdown content.
Attributes
icon
(:string
) - Optional icon to display in the dropdown item. Defaults tonil
.variant
(:atom
) - Variant of the dropdown item. Defaults to:default
. Must be one of:default
, or:destructive
.- Global attributes are accepted. HTML attributes to apply to the dropdown item. Supports all globals plus:
["href", "method", "navigate", "patch"]
.
Slots
inner_block
(required) - The inner block of the dropdown item.