Action Group

Updated:

Use for laying out groups of buttons or links with consistent spacing.

Properties

Learn more about properties.

fullWidth
full-width

Whether the slotted elements should take up the full width of the container when in horizontal orientation.

This will prevent the buttons from wrapping when the container is too small to fit all buttons.

orientation

The orientation of the buttons, which will override the auto orientation.

Vertical orientation is not supported for Links or "coin" Buttons, and will be set to "horizontal".

This will override and disable the auto determination of the orientation.

orientationThreshold
orientation-threshold

The width, in pixels, that determines whether to display the buttons in vertical or horizontal orientation

The component determines this based on the width of the element itself, not the browser window.

Design

Overview

An Action Group is a collection of actions combined to give access to frequently performed, related actions. Actions inside the Action Group follow their parent components' guidelines and states.

Anatomy

Submit Cancel Reset
<q2-action-group>
  <q2-btn intent="workflow-primary">Submit</q2-btn>
  <q2-btn intent="workflow-secondary">Cancel</q2-btn>
  <q2-btn intent="workflow-escape">Reset</q2-btn>
</q2-action-group>

To insure proper display in the user interface, action groups using buttons should never wrap to two lines or rows. If there is a situation where the action group wraps inside its object, use stacked blocked display to present the buttons.

Usage

When To Use

  • Actions have a contextual relationship
    • For example, the default button group can be used when a form has a primary and alternative action.
  • Stepping through linear content
    • Actions in an action group can be used for directional navigation and actions ("Back", "Next", "Continue", "Skip", "Cancel")

When To Not Use

  • If actions are not related
    • Consider how placement and alternative structure of unrelated actions can improve usability over placing all actions in a group.
  • Linking to content
    • Buttons in button groups should not be used when text links would be simpler and more contextually appropriate. Grouped buttons such as "Next" and "Previous" are acceptable when content is organized sequentially.

Usability Guidance

  • Avoid burden of choice.

    • Try not to present the user with too many options (4 actions maximum)
  • Don't mix differently sized buttons in the same group

  • Use only one primary button in a button group

  • Attempt to maintain consistency with other pages when placing the primary action.

  • Use short, descriptive button labels to describe controls.

    • Button labels should be concise and clear enough to indicate what will happen when the button is interacted with

Patterns

Provide clean examples of how to compose multiple components together in order to achieve a specific visual outcome that is curated and maintained by Tecton.

Inline patterns

  • Coin Buttons

    How to build a row of coin-style buttons that group related top-level actions like account shortcuts.

    Coin buttons are circular icon-and-label buttons used for prominent shortcuts, typically along the top of a page or section. Use them to surface a small, fixed set of related actions (for example: Statements, Transfers, Settings, Sign Out).

    Limit coin buttons to 3 to 5 actions per group, and give each button a distinct icon that clearly represents its action. Avoid using the same icon for multiple buttons in a single group; the visual differentiation is what makes coin buttons scannable.

    A coin button takes a q2-avatar element as its child and uses intent="coin". Wrap the set in a q2-action-group so they pick up consistent spacing, alignment, and responsive behavior.

    <q2-action-group>
        <q2-btn intent="coin" label="Statements">
            <q2-avatar icon="statements"></q2-avatar>
        </q2-btn>
        <q2-btn intent="coin" label="Transfers">
            <q2-avatar icon="transfer"></q2-avatar>
        </q2-btn>
        <q2-btn intent="coin" label="Settings">
            <q2-avatar icon="gear"></q2-avatar>
        </q2-btn>
        <q2-btn intent="coin" label="Sign Out">
            <q2-avatar icon="logout"></q2-avatar>
        </q2-btn>
    </q2-action-group>
  • Grouping Buttons

    When to group buttons together and how to do it correctly using q2-btn and q2-action-group.

    When you have two or more related actions sitting next to each other, for example a primary "Save" button next to a secondary "Cancel" button, wrap them in a q2-action-group. This gives them consistent spacing, alignment, and responsive behavior on small screens.

    Avoid stacking q2-btn elements directly inside a flex or grid container without q2-action-group.

    Save Cancel
    <q2-action-group>
        <q2-btn intent="workflow-primary">Save</q2-btn>
        <q2-btn intent="workflow-secondary">Cancel</q2-btn>
    </q2-action-group>

Full-page patterns

  • Account List Page

    How to build an Account List page in Tecton: a summary header and a searchable, client-filtered account list.

  • Account Settings Page

    How to build an Account Settings page in Tecton: six independent settings sections covering nickname, notifications, statement delivery, card management, spending limits, and overdraft protection.

  • Bank Statement Page

    How to build a Bank Statement page in Tecton: a computed account summary and a q2-data-table of transactions for a statement period.

  • Funds Transfer Page

    How to build a Funds Transfer form in Tecton: a single-column transfer with rich account options, a recurrence schedule, and client-side validation.

  • Message Center Page

    How to build a Message Center page in Tecton: a two-panel layout with a message list on the left and a selected message detail plus response form on the right.

  • Profile Page

    How to build a Profile page in Tecton: required-field validation for personal information, real-time cross-field password validation, and plain integration toggles.

Accessibility

Accessibility Report

Tecton components are designed and tested to be WCAG compliant when used appropriately, and do not get released without proper validation. Developers should prefer not to set ARIA attributes when using components from the Tecton Design System.

CSS Variables

The following CSS variables are available to override the default theme styles of the q2-action-group component.

Dependencies

Many Tecton components consume other components to maintain visual and functional consistency. If you are looking for a CSS variable you think should exist but are not seeing it, it may be defined in one of the dependent components below. Either way, if you think it's something we should expose more conveniently, let us know!

Dependencies

This component uses other components in the Tecton library, including:

  • q2-resize-observer

Dependents

Other components in the Tecton library use this component, including:

  • q2-context
  • q2-modal

Changelog

The changelog provides a detailed history of new features, improvements, and bug fixes going back to Tecton 1.30.0. If the button is disabled, it indicates there have been no detectable changes since then.

Show changelog (14)