Skip to content

shadcn.io is an independent project built on shadcn/ui

Free

Windows Key Kbd for React

The Windows key and R, grouped and labeled Win and R. The caps do not open the Run dialog.

Win and R sit in one group. The Windows key is the word Win, not a logo. The shortcut is not registered.

Use Win in Windows docs. Do not show this chord to Mac readers. A Button can sit beside the hint. In React, Base UI does not handle the Windows key.

Preview

Preview width
WinR

Installation

Sign in to get your install command
Free with an account. It carries your token, so the CLI installs everything in one go.

Anatomy

Kbd anatomy: kbd, group

Usage

<div className="rounded-md border bg-background p-4">
  <KbdGroup>
    <Kbd>Win</Kbd>
    <Kbd>R</Kbd>
  </KbdGroup>
</div>

FAQ

Should I show Win or the Windows logo?

The word is clear and needs no icon; it's what most documentation uses. The logo is a trademark and has no standard character, so drawing it means adding an image or a brand icon.

Which Windows key shortcuts are worth documenting?

Win R for Run, Win E for File Explorer, Win D for the desktop, Win L to lock, Win Shift S for a screenshot and Win period for emoji. Web apps can't use these, so they belong in setup and support guides.

Is the Windows key the same as Super on Linux?

Yes, it's the same key; Linux desktops call it Super and use it for their own shortcuts, like opening the activities overview.

What is the Mac equivalent of the Windows key?

It sits where ⌘ sits, but the shortcuts differ: Win L to lock is ⌃⌘Q on Mac, and Spotlight with ⌘Space replaces the Start menu search.

Do screen readers read Win?

They read it as the word, which is clear enough in context. Writing Windows key in the text around the shortcut removes any doubt.

Why do some keyboards have no Windows key?

Mac keyboards have ⌘ instead, Chromebooks have a launcher key, and some gaming keyboards can turn the Windows key off so it doesn't interrupt a game.

API Reference

Kbd

No extra props in this demo. The rest is on the Kbd page.