Dropdown menu on the shared overlay runtime (anchored placement, focus return, Escape/outside dismissal, arrow-key item navigation).
<.dropdown id="row-actions" placement="bottom-end">
<:toggle>
<.button size="icon" aria-label="Actions"><.icon name="ellipsis-horizontal" /></.button>
</:toggle>
<.dropdown_header>object.png</.dropdown_header>
<.dropdown_button phx-click="download">Download</.dropdown_button>
<.dropdown_link navigate="/preview">Preview</.dropdown_link>
<.dropdown_separator />
<.dropdown_button phx-click="delete" data-danger>Delete</.dropdown_button>
</.dropdown>The API mirrors Fluxon's dropdown family (dropdown, dropdown_header,
dropdown_separator, dropdown_link, dropdown_button, dropdown_custom).
Hover-open and animation-tuning attrs are accepted for Fluxon compatibility;
open/close is click/keyboard-driven and the fade is token-driven.
Summary
Functions
Attributes
id(:string) (required)label(:string) - default toggle button text when no :toggle slot. Defaults tonil.class(:any) - classes for the menu panel. Defaults tonil.container_class(:any) - Defaults tonil.toggle_class(:any) - Defaults tonil.disabled(:boolean) - Defaults tofalse.placement(:string) - Defaults to"bottom-start". Must be one of"bottom-start","bottom-end","top-start", or"top-end".animation(:string) - accepted for Fluxon compat. Defaults tonil.animation_enter(:string) - accepted for Fluxon compat. Defaults tonil.animation_leave(:string) - accepted for Fluxon compat. Defaults tonil.open_on_hover(:boolean) - accepted for Fluxon compat; click/keyboard only. Defaults tofalse.hover_open_delay(:integer) - accepted for Fluxon compat. Defaults tonil.hover_close_delay(:integer) - accepted for Fluxon compat. Defaults tonil.- Global attributes are accepted.
Slots
toggleinner_block(required)
Attributes
class(:any) - Defaults tonil.disabled(:boolean) - Defaults tofalse.- Global attributes are accepted.
Slots
inner_block(required)
Attributes
class(:any) - Defaults tonil.- Global attributes are accepted.
Slots
inner_block(required)
Attributes
class(:any) - Defaults tonil.- Global attributes are accepted.
Slots
inner_block(required)
Attributes
class(:any) - Defaults tonil.disabled(:boolean) - Defaults tofalse.- Global attributes are accepted. Supports all globals plus:
["navigate", "patch", "href", "method", "download", "target"].
Slots
inner_block(required)
Attributes
class(:any) - Defaults tonil.- Global attributes are accepted.