Skip to main content
ALEXY LINK

Button 10

A split action control combining a primary command with an accessible secondary action menu.

Requirements

HTML, CSS, JavaScript

Dependencies

None

Usage

Copy index.html, styles.css and script.js into your project.

Typography: Inter, with a system sans-serif fallback.

About Button 10

Button 10 is a button component in the Button Components collection, available in HTML + CSS + JavaScript and React + TypeScript + Tailwind CSS. Last updated August 25, 2026.

  • button
  • split button
  • buttons
  • menu
  • export

What the code includes

HTML + CSS + JavaScript

3 files: index.html, styles.css, script.js

  • Behavior is handled in script.js.
  • ARIA in the markup: roles menu, none, menuitem; aria-haspopup, aria-expanded, aria-controls, aria-label.
  • HTML elements used: ul, button, svg.
  • Keyboard keys handled: Escape, ArrowUp, ArrowDown.
  • Includes a prefers-reduced-motion rule for its animation.

React + TypeScript + Tailwind CSS

3 files: Button10.jsx, Button10.types.ts, Button10.tailwind.css

  • Configurable through 5 props: label, onAction, items, menuLabel, className.
  • Uses React hooks: useEffect, useId, useRef, useState.
  • ARIA in the markup: roles menu, menuitem, none; aria-haspopup, aria-expanded, aria-controls, aria-label.
  • HTML elements used: ul, button, svg.
  • Keyboard keys handled: Escape, ArrowUp, ArrowDown.
  • Includes a prefers-reduced-motion rule for its animation.
View all Button Components (10)