Skip to content

Windows Caption Buttons

Free

The minimize, maximize or restore, and close buttons of Windows 11, in the WinUI and Chrome sizes.

  • React 19
  • Tailwind CSS 4

Added Nov 10, 2026 · MIT + Commons Clause

Playground

Loading the preview

Props

Import Windows Caption Buttons and compose its parts.

windows-caption-buttons.tsx

WindowsCaptionButtons

<div>
PropTypeDefaultDescription
size"default""lg"—
state"hover-close""hover-minimize""inactive""pressed-close""rest""rest"
variant"chrome""default"—
maximizedbooleanfalseThe window fills the screen: the middle button shows the restore glyph.
appearance"dark""light""system""system"The look of the glyphs and fills: 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 the 32 or 48 title bar.
  • Set maximized for the restore glyph.

Screen readers skip it, because the buttons do nothing.

  1. AddedWindows Caption Buttons.
Open the release