Skip to main content

Dropdown Component

The dropdown component presents a menu of actions. It is an action menu, not a form select, and has matching web and mobile behavior.

component: dropdown
name: orderActions
props:
ariaLabel: { en-US: "Order actions" }
items:
- label: { en-US: "Edit" }
icon: edit
permission: Orders/Update
onClick:
- dialog: { component: Orders/Edit }
- divider: true
- label: { en-US: "Delete" }
icon: trash
color: error
isVisible: "{{ canDelete }}"
onClick:
- confirm: { title: { en-US: "Delete order?" } }

Props​

PropTypeDescription
labellocalized stringOptional trigger label. When omitted, the renderer shows a 40×40 icon-only more-actions button.
ariaLabellocalized stringAccessible name for an icon-only trigger; defaults to More actions.
iconstringTrigger icon. An icon-only trigger defaults to tabler-dots-vertical.
itemsarrayMenu items and dividers.
items[].labellocalized stringVisible item label.
items[].iconstringOptional leading item icon.
items[].colorstringSemantic item color; use error for destructive actions.
items[].dividerbooleanRender a separator instead of an action item.
items[].disabledboolean or expressionDisable the item without hiding it.
items[].permissionstringHide the item when the permission is absent.
items[].isVisible / isHiddenboolean or expressionConditionally hide the item.
items[].onClickactionsActions run after selecting the item.

Hidden items are removed before rendering. Leading, trailing, and duplicate dividers are also removed, and the entire trigger is hidden when no actionable items remain. Web aligns icon-only menus to the trigger's right edge; mobile uses the equivalent bottom-end placement.