Skip to content

macOS Traffic Lights

Free

The close, minimize, and zoom buttons of a macOS window, with marks on hover and the grey of an inactive window.

  • React 19
  • Tailwind CSS 4

Added Nov 10, 2026 · MIT + Commons Clause

Playground

Loading the preview

Props

Import macOS Traffic Lights and compose its parts.

macos-traffic-lights.tsx

MacosTrafficLights

<div>
PropTypeDefaultDescription
showGlyphsboolean—
size"default""sm"—
state"active""inactive""active"
appearance"dark""light""system""system"The look of the inactive gray: the page theme (system), or always light or dark.
...props<div> attributes—Every other attribute goes to the <div>, with a ref.
  • Use it in a title bar mockup.
  • Set size for 14pt or 12pt dots.
  • Set state to pin one look.

Screen readers skip it.

Glyphs
hover · 120ms · the glyphs show on a hover
  1. AddedmacOS Traffic Lights.
Open the release