Skip to main content
ALEXY LINK

Dropdown 06

A staged multi-select filter panel — checkboxes commit only on Apply, with a live count on the trigger and a one-click Clear.

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 Dropdown 06

Dropdown 06 is a dropdown component in the Dropdown Components collection, available in HTML + CSS + JavaScript and React + TypeScript + Tailwind CSS. Last updated September 13, 2026.

  • dropdown
  • filter

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: aria-expanded.
  • HTML elements used: button, input, label, svg.
  • Keyboard keys handled: Escape.
  • Includes a prefers-reduced-motion rule for its animation.

React + TypeScript + Tailwind CSS

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

  • Configurable through 7 props: triggerLabel, options, value, defaultValue, onApply, defaultOpen, className.
  • Uses React hooks: useEffect, useId, useLayoutEffect, useRef, useState.
  • ARIA in the markup: aria-expanded, aria-controls.
  • HTML elements used: button, input, label, svg.
  • Keyboard keys handled: Escape.
  • Includes a prefers-reduced-motion rule for its animation.
View all Dropdown Components (10)