Learn 36 Action & Menu concepts for Frontend development, with definitions, aliases, and ready-to-use AI prompts.
Buttons & hierarchy
Primary button
The highest-emphasis button for the main action in the current view.
Also known as
Main action, Prominent button, Call-to-action button
AI prompt
Create one accessible primary button for the view’s most important action. Use concise verb-first text, native button semantics, visible hover, focus, pressed, loading and disabled states, and enough contrast without relying on color alone.
Secondary button
A medium-emphasis action that supports or offers an alternative to the primary action.
Create an accessible secondary button beside a primary action, using lower visual emphasis while preserving the same target size, readable label, focus visibility and full keyboard behavior.
Tertiary button
A low-emphasis button for optional actions that should remain discoverable.
Also known as
Low-emphasis button, Text button, Minimal button
AI prompt
Create an accessible tertiary button for an optional action, with a text-forward appearance, a clear hover surface, visible keyboard focus, a generous hit area and no confusion with ordinary navigation links.
Ghost button
A minimally styled action that becomes more visible on hover or focus.
Create an accessible ghost button for a low-priority action, keeping its label readable against every background and providing unmistakable hover, active and focus-visible states without adding permanent visual weight.
Destructive button
A danger-styled action that can remove data or cause a difficult-to-reverse change.
Also known as
Danger button, Delete button, Critical action
AI prompt
Create an accessible destructive button labelled with the exact consequence, separate it from routine actions, use text and iconography beyond red alone, require confirmation for irreversible loss, and offer undo when recovery is possible.
Icon button
A compact button represented by a familiar symbol instead of visible text.
Also known as
Symbol button, Glyph button, Icon-only action
AI prompt
Create an accessible icon-only button for sharing, with a 44 by 44 pixel target, an accessible name, familiar icon, tooltip on hover and focus, and visible hover, pressed and focus states.
Icon and text button
A button combining a symbol with a visible action label for faster recognition.
Also known as
Labelled icon button, Button with icon, Icon-label action
AI prompt
Create an accessible button with a leading upload icon and the label Upload files. Treat the icon as decorative, keep the label concise, preserve spacing in right-to-left layouts, and support wrapping rather than truncation.
Full-width button
A prominent action that spans its container, often used on compact screens.
Also known as
Block button, Wide button, Mobile primary action
AI prompt
Create an accessible full-width primary button for a mobile checkout, with a minimum 44-pixel height, safe-area-aware spacing, a stable loading state, concise label and a sensible maximum width on larger screens.
Disabled action
An unavailable action whose appearance and explanation clarify why it cannot run.
Create an unavailable Save button that remains understandable at sufficient contrast, explains what requirement is missing nearby, avoids using disabled state when validation would be clearer, and becomes enabled predictably when the requirement is met.
Stateful & compound actions
Toggle button
A button that switches one setting or mode between pressed and unpressed states.
Also known as
Pressed button, On-off action, State button
AI prompt
Create an accessible Bold toggle button using aria-pressed, a stable accessible name, visually distinct on and off states, keyboard activation, and an icon plus tooltip that does not change the button’s meaning.
Favorite button
A stateful icon action that adds or removes an item from a saved collection.
Also known as
Star button, Bookmark action, Save toggle
AI prompt
Create an accessible favorite button that toggles aria-pressed, uses a stable Favorite label with announced state, updates its star icon and text without moving focus, persists the choice, and reports save failures.
Button group
A visually related set of independent actions that affect the same object or task.
Also known as
Action group, Grouped buttons, Button cluster
AI prompt
Create a labelled button group for Reply, Forward and Archive actions, with consistent sizing, sufficient separation, individual accessible names, visible keyboard focus and responsive wrapping without changing action order.
Split button
A primary action paired with a separate arrow that opens closely related alternatives.
Also known as
Split action, Primary plus menu, Dropdown split button
AI prompt
Create an accessible split button whose main area runs Publish and whose adjacent arrow opens Schedule and Save draft alternatives. Give both controls names, separate focus stops, menu-button semantics and consistent disabled behavior.
Combo button
A prominent action with an attached menu of alternate actions in limited space.
Also known as
Combination button, Action combo, Primary menu button
AI prompt
Create a combo button with Create project as the default action and a menu for Create folder and Import project. Keep two keyboard stops, match menu width to the trigger, expose expanded state and restore focus after dismissal.
Disclosure button
A button that expands or collapses a related section of content.
Also known as
Expand button, Show-hide control, Disclosure control
AI prompt
Create an accessible disclosure button for Advanced settings using aria-expanded and aria-controls, a rotating decorative chevron, no unexpected focus movement, preserved state and correct collapsed content visibility.
Repeat action
A compact action that repeats or reapplies the most recent command.
Also known as
Redo action, Run again, Repeat command
AI prompt
Create an accessible Repeat export action that clearly names what will repeat, prevents duplicate work while running, shows the most recent completion time, reports success or failure, and supports the documented keyboard shortcut.
Hold-to-confirm action
A deliberate press-and-hold control for an unusually high-impact action.
Also known as
Press-and-hold button, Hold action, Long-press confirmation
AI prompt
Create a hold-to-confirm control only for a rare high-impact action, with visible progress, pointer and keyboard alternatives, cancellation when released early, reduced-motion support and a conventional confirmation option for assistive technology.
Loading action
A button that communicates an in-progress operation while preventing duplicate activation.
Also known as
Busy button, Progress button, Submitting action
AI prompt
Create an accessible Save changes button that keeps its width while changing to Saving, exposes aria-busy, prevents duplicate submission without removing focus, and resolves to a clear success or retryable error state.
Menus & commands
Action menu
A button-triggered menu containing several commands for the same page or object.
Also known as
Menu button, Actions dropdown, Command menu
AI prompt
Create an accessible Actions menu button with fewer than five concise commands, aria-haspopup and aria-expanded, Enter, Space and arrow-key support, focus on the first item when opened, Escape dismissal and focus restoration.
Overflow action menu
A compact more-actions menu for secondary commands when space is constrained.
Also known as
Overflow menu, Kebab menu, More actions
AI prompt
Create an accessible overflow action menu for a card with Rename, Duplicate and Delete. Give the icon button a visible or programmatic More actions label, separate the destructive item, support keyboard navigation and return focus on Escape.
Context action menu
A menu of commands relevant to the selected item or invocation point.
Also known as
Context menu, Right-click menu, Shortcut menu
AI prompt
Create a context menu for a file row that opens by secondary click and Shift plus F10, also exposes an obvious actions-button alternative, positions within the viewport, supports menu keyboard behavior and closes after a command.
Cascading submenu
A menu item that opens a second level of closely related commands.
Also known as
Submenu, Nested menu, Cascading menu
AI prompt
Create an accessible cascading submenu under Move to, with a visible direction indicator, arrow-key entry and exit, delayed pointer opening, Escape that closes one level at a time, and collision-aware placement.
Checkable menu
A menu whose independent options can be toggled on or off without closing immediately.
Also known as
Checkbox menu, Toggle menu items, Multi-select menu
AI prompt
Create an accessible View menu with independent Show grid, Show rulers and Snap to guides menuitemcheckbox options, current checked states, keyboard operation and intentional stay-open behavior after toggling.
Radio menu
A menu containing a mutually exclusive set of choices with one current value.
Also known as
Single-choice menu, Option menu, Menu radio group
AI prompt
Create an accessible Sort menu using menuitemradio options for Name, Date modified and Size, expose the current choice, support arrow keys and close after selection while updating the trigger label.
Grouped menu
A longer menu divided into meaningful labelled or separated command sections.
Also known as
Sectioned menu, Divided menu, Command groups
AI prompt
Create an accessible grouped menu that orders frequent actions first, separates sharing commands from file management and danger actions, uses concise labels, keeps the list scannable and provides semantic separators without extra focus stops.
Shortcut menu
A command menu that displays keyboard shortcuts beside frequently used actions.
Also known as
Command menu, Keyboard menu, Accelerator menu
AI prompt
Create an accessible Edit command menu that shows platform-aware shortcuts for Undo, Redo, Cut, Copy and Paste, preserves readable command names, marks unavailable actions, and never makes shortcuts the only activation method.
Application menubar
A persistent desktop-style row of menus for application commands.
Also known as
Menu bar, Desktop menu, ARIA menubar
AI prompt
Create an ARIA application menubar for File, Edit, View and Help only when native desktop-style command behavior is intended, with roving tabindex, arrow navigation, submenus, character search, Escape handling and complete menuitem semantics.
Contextual & responsive actions
Toolbar
A labelled group of three or more frequent controls for the current content.
Also known as
Action toolbar, Command toolbar, Tool strip
AI prompt
Create an accessible labelled toolbar for document actions with one Tab stop, Left and Right Arrow navigation, clear control names, logical groups, visible focus and lower-priority commands moved to overflow at narrow widths.
Formatting toolbar
A toolbar of stateful text or object formatting controls.
Also known as
Editor toolbar, Rich-text toolbar, Format bar
AI prompt
Create an accessible text-formatting toolbar with Bold, Italic, alignment and text-style controls, roving keyboard focus, aria-pressed for toggles, current-value labels for menu buttons and shortcuts that do not replace visible controls.
Bulk action bar
A contextual command bar that appears when multiple items are selected.
Also known as
Batch actions, Selection toolbar, Multi-select action bar
AI prompt
Create a bulk action bar that appears when table rows are selected, announces the selection count, provides Archive, Move and Delete actions, preserves selection while commands run and remains keyboard reachable without shifting the page unexpectedly.
Sticky action bar
A persistent action row that remains available while related content scrolls.
Also known as
Fixed action bar, Persistent footer actions, Sticky footer buttons
AI prompt
Create a sticky form action bar with Cancel and Save changes, visible separation from scrolling content, safe-area padding, no obstruction of fields or browser controls, responsive stacking and a stable unsaved-change indicator.
Floating action button
A prominent circular button floating above content for the screen’s primary action.
Also known as
FAB, Floating button, Primary floating action
AI prompt
Create an accessible floating action button for composing a new message, with one clear primary purpose, a familiar icon plus accessible name, 44-pixel minimum target, safe-edge placement, elevation, tooltip and no overlap with essential content.
Speed dial
A floating action that expands into a small set of closely related actions.
Create an accessible speed dial that expands from an Add floating button into no more than four labelled related actions, exposes expanded state, supports keyboard navigation and Escape, respects reduced motion and collapses after selection.
Inline row actions
Compact commands placed directly beside a list or table item.
Also known as
Row actions, Item actions, Inline controls
AI prompt
Create accessible inline actions for a project row with Edit as the frequent visible action and secondary commands in a labelled overflow menu, keeping row selection separate and revealing the controls on keyboard focus as well as hover.
Swipe actions
Touch gestures that reveal item commands from behind a list row.
Also known as
Swipe-to-act, Slide actions, Gesture actions
AI prompt
Create mobile swipe actions for Archive and Delete on a message row, with visible button alternatives, one-direction thresholds, cancellation before commitment, undo for destructive actions, screen-reader operability and no conflict with page scrolling.
Bottom action bar
A mobile-friendly bar placing frequent commands near the bottom edge.
Also known as
Bottom toolbar, Mobile action bar, Action dock
AI prompt
Create an accessible mobile bottom action bar for Share, Save and More, with safe-area padding, large labelled targets, one visually prominent primary action, no overlap with system gestures and a responsive desktop toolbar alternative.