import { Command } from "fmicon-react";
<Command size={24} strokeWidth={1} />
Props
| Prop | Type | Default | Description |
|---|---|---|---|
size | number | string | 24 | Width and height in pixels |
variant | "linear" | "bold" | … | linear | Any of the 8 styles, plus glass-light for light backgrounds |
color | string | currentColor | Any CSS colour; inherits the text colour by default |
strokeWidth | number | 1.5 | Line weight for linear, twotone, broken and duotone |
...props | SVG attributes | – | className, aria-label, onClick and the rest |
More in Programming
What is the Command Icon?
The command icon is the looped square symbol printed on the Command key of Apple keyboards. In an interface it signals a keyboard shortcut or a quick action launcher: tap it to open a command palette, show a shortcut cheat sheet or hint that a feature can be triggered from the keyboard.
The four-looped shape is a Scandinavian place of interest sign, picked for the first Macintosh in 1984 after Steve Jobs felt the Apple logo appeared in menus too often. People now read it as power user territory: shortcuts, palettes and hidden speed. It should not be confused with the Windows Ctrl key, which has no symbol, or with the >_ prompt, which means typing into a terminal.
When to Use the Command Icon
- Productivity app sidebar: opens a command palette where people search for actions instead of hunting through menus.
- Menu items in a Mac web app: sits before the shortcut letter, showing that the action has a keyboard equivalent.
- Onboarding tooltip: highlights the shortcut that opens quick search, teaching new users a faster route through the product.
- Help centre article: marks the section listing every shortcut, grouped by editing, navigation and formatting tasks.
The Command Icon in Linear Style
Linear icons are drawn with a single even stroke and no fills, so they stay light next to body text. You can change the stroke weight from thin to bold without the shape falling apart.
Best for: toolbars, tab bars, settings lists and anything that sits beside text.
The same icon also comes in outline, bold, bulk, twotone, broken, glass and duotone. See every icon in this look on the free linear icons page.
How to Use the Command Icon
- Customise it. Pick a stroke weight, size and colour on the left. Thin (1 px) looks best at large sizes, Regular (1.5 px) is the default.
- Copy or download. Copy the SVG, or download SVG, PNG or WebP at any size from 16 to 512 px.
- Drop it into code. Choose React, React Native, Vue, Svelte, Angular or Flutter above and copy the ready-made
CommandIconcomponent. - Label it. If the icon is the only thing in a button, give it a name for screen readers:
aria-label="Open command palette". If text sits next to it, usearia-hidden="true"instead.
Design Tips for the Command Icon
- Detect the platform and show Ctrl as text on Windows and Linux, since the looped symbol only matches the physical key on Apple keyboards.
- When used inline next to letters, size the glyph to the cap height of the text so the shortcut reads as one unit.
- Give an icon-only palette button a label naming the action, and add aria-keyshortcuts so the key combination is announced too.
Icons That Work Well with Command
Browse all programming iconsCommand Icon FAQ
It is usually called the command symbol, cloverleaf or looped square, and Unicode lists it as the place of interest sign, U+2318. On a Mac it sits on the Command key beside the space bar and appears in menus next to every shortcut that uses that key.
Not quite: the looped symbol stands for one specific Apple modifier key, while a general shortcut symbol usually shows a keyboard or keycap to mean shortcuts in any app. Use the command symbol for Mac shortcut hints and a keyboard glyph for a cross-platform shortcut list.
Yes. The command icon is one of 891 free, open-source icons you can use in personal and commercial work, including client projects and apps you sell. The packages are MIT licensed; keep the licence notice if you redistribute the icon files.
SVG, PNG and WebP, at any size from 16 to 512 pixels. You can also copy it as JSX or as a ready-made component for React, React Native, Vue, Svelte, Angular and Flutter, with your stroke weight and colour already applied.