FuroDropdownMenu
Molecule-layer trigger-plus-floating-menu component. It renders a native
trigger button (styled like FuroButton, overridable via the #trigger
slot) that opens a floating menu built declaratively from a parcel.options
array. Rows can be plain actions, checkbox rows, submenus, or separators —
row kind is resolved automatically by priority (separator, then submenu,
then checkbox, then default action). It does not use v-model: the menu
only emits selection/toggle events, and the parent owns any persistent
checked state for checkbox rows.
- Layer: molecule
- Import:
import { FuroDropdownMenu } from '@openreachtech/furo-vue' - Manifest entry:
node_modules/@openreachtech/furo-vue/public/furo-vue/components.json→components[].name === 'FuroDropdownMenu'
Read the manifest before writing markup if you need to confirm this information is still current — the library may have added props/events since this skill was written.
When NOT to use
- A single one-shot action with no menu of choices → use
hof-cp-buttondirectly instead. - A floating panel that shows arbitrary content or a tooltip rather than a list of discrete actions → use
hof-cp-popover. - A modal/drawer that takes over the flow (confirmation, form) → use
hof-cp-dialog. - Picking one/many values from a list as part of a form field (not an actions menu) → use
hof-cp-select. - Persistent boolean options rendered inline rather than behind a trigger → use
hof-cp-checkbox-toggleorhof-cp-toggle-group.
Props
| Prop | Type | Default | Notes |
|---|---|---|---|
parcel | FuroDropdownMenuParcel | null | null | Menu behavior and declarative rows. |
triggerParcel | object | null | null | Default trigger appearance tokens (variant, size) aligned with FuroButton. |
parcel fields
| Field | Type | Default | Notes |
|---|---|---|---|
open | boolean | uncontrolled | Controlled open state; omit for internal state. |
disabled | boolean | false | Disables trigger and menu. |
side | 'top' | 'right' | 'bottom' | 'left' | 'bottom' | Which edge of the trigger the menu opens against. |
align | 'start' | 'center' | 'end' | 'start' | How the menu aligns along that edge. |
sideOffset | number | 4 | Gap between trigger and menu, in rem-equivalent pixels. |
options | Array<FuroDropdownMenuOption> | [] | Declarative menu rows. |
Events
| Event | Payload | Fires when |
|---|---|---|
open:change | { open: boolean } | Menu open state changes. |
option:select | DropdownMenuOptionSelectEmitPayload | User selects an enabled action row. |
option:checked-change | { option: FuroDropdownMenuOption, checked: boolean } | User toggles a checkbox row. |
There is no update:value event in the manifest — this component does not
follow the v-model form-control contract; own the checked state of any
checkbox rows yourself and pass it back in via parcel.options.
Slots
| Slot | Description |
|---|---|
trigger | Native button labeled "Menu" (FuroButton-compatible styling). Override with label content. |
option-label | Override row label rendering. Scoped props: { option, index }. Defaults to option.label text. |
default | Append custom menu content (advanced). |
Row height
| Before 1.5.0 | From 1.5.0 | |
|---|---|---|
| Minimum height of a menu row | Fixed at calc(var(--size-input-height) - 0.5rem) in the component's CSS | Reads --size-option-height, which defaults to the same value, 24px |
| Override from the app | Declaring the token changes nothing, because the component never reads it | Redefine the token, and every row follows |
From 1.5.0, an app raises the rows to a larger touch target by overriding the
token as /hof-lib-tokens describes, never the menu's CSS. The token holds one
value in both themes, so put it on :root, either unlayered or in
@layer app:
css:root { --size-option-height: 2.5rem; }
FuroSelect option rows read the same token, so the override raises them too.
Fallthrough attributes
class and style compose onto the root. Every other attribute you write on
the component (id, aria-*, data-*) is dropped and reaches no element.
Usage
vue<script> import { FuroDropdownMenu, } from '@openreachtech/furo-vue' export default { components: { FuroDropdownMenu, }, } </script> <template> <FuroDropdownMenu :parcel="{ options: context.rowActionOptions, align: 'end' }" @option:select="context.onSelectRowAction({ payload: $event })" > <template #trigger> Actions </template> </FuroDropdownMenu> </template>
With a checkbox row whose checked state is owned by the Context:
vue<template> <FuroDropdownMenu :parcel="{ options: context.columnVisibilityOptions }" @option:checked-change="context.onToggleColumnVisibility({ payload: $event })" /> </template>
Rules (per project conventions)
- This component does not follow the
v-model:valueform-control contract — there is noupdate:valueevent. Its emit contract isoption:selectfor one-shot actions,option:checked-changefor checkbox rows (the parent must feed the updatedcheckedstate back intoparcel.options), andopen:changeif you choose to controlopenyourself instead of letting the menu manage it internally. - Never import the underlying headless primitive — only the public
FuroDropdownMenuexport. - Build the
optionsarray and everyon...handler (onSelectRowAction,onToggleColumnVisibility, etc.) in the page/component Context, not inline in the template. - Pass only the
parcelkeys this skill lists. A component reads the keys it names and ignores the rest, so a mistyped key changes nothing and reports nothing, so check a key against the manifest rather than trusting silence.


