Action Group

A semantic container for grouping related action buttons or links. Uses the native <menu> element with a single action-group class to produce a responsive, centered flex row that stacks on mobile.

Basic Action Group

Get Started Learn More
<menu class="actions">
  <a href="#" class="button primary">Get Started</a>
  <a href="#" class="button secondary">Learn More</a>
</menu>

Three-Action Group

Get Started Explore Components View on npm ↗
<menu class="actions">
  <a href="#" class="button primary">Get Started</a>
  <a href="#" class="button secondary">Explore Components</a>
  <a href="#" class="button outline">View on npm ↗</a>
</menu>

With Native Buttons

<menu class="actions">
  <button class="primary">Confirm</button>
  <button class="secondary">Cancel</button>
</menu>

In a Hero Section

Build Better Interfaces

Semantic HTML meets beautiful design.

Get Started Now View on GitHub ↗
<section class="hero">
  <div class="container">
    <h2>Build Better Interfaces</h2>
    <p>Semantic HTML meets beautiful design.</p>
    <menu class="actions">
      <a href="#" class="button primary">Get Started Now</a>
      <a href="#" class="button outline">View on GitHub ↗</a>
    </menu>
  </div>
</section>

Key Features

  • Semantic Element — Uses <menu>, the correct HTML5 element for interactive controls
  • Single Class — Only action-group class; no modifier utilities needed
  • Responsive — Centered flex row on desktop; full-width stacked column on mobile (≤640px)
  • Design Tokens — Gap and margin driven by --a-space-m and --a-space-l
  • Composable — Works with <a class="button">, <button>, or any inline child

Responsive Behavior

  • Desktop — Flex row, centered, with --a-space-m gap between items
  • Mobile (≤640px) — Stacks vertically; each child stretches to full width with centered text

Accessibility

  • Use <menu> — it is semantically a list of interactive items
  • Each child should be a focusable element (<a> or <button>)
  • Include descriptive text or aria-label on each action
  • Keyboard navigation works natively through standard tab order

Best Practices

  • Keep to 2–4 actions; more dilutes focus
  • Place the primary action first (leftmost / top on mobile)
  • Use the most prominent button variant (primary) for the single most important action
  • Avoid nesting action groups inside one another

Features

  • Semantic Structure - Built with native HTML5 elements for maximum reliability.
  • Theme Aware - Automatically adapts to all 22 Axiom01 themes via OKLCH tokens.
  • Fully Responsive - Scales perfectly from mobile to desktop screens.
  • No JS Dependency - Core functionality relies on pure CSS for maximum performance.
  • Customizable - Easily extendable via Axiom01's design tokens and modifiers.

Use Cases

The Action Group component is designed for versatile implementation across modern web applications. Ideal scenarios include:

  • Dashboards & Admin Panels - Structured data presentation and interface control.
  • Content Management Systems - Organizing complex information hierarchies and media.
  • E-Commerce Platforms - Enhancing product discovery and user workflows.
  • Marketing Sites - Highlighting key product offerings cleanly and effectively.
  • SaaS Applications - Delivering native-feeling, responsive app experiences.