Export size24px

 

App.jsx
import { Keyboard } from "fmicon-react";

<Keyboard size={24} strokeWidth={1} />

Props

PropTypeDefaultDescription
sizenumber | string24Width and height in pixels
variant"linear" | "bold" | …linearAny of the 8 styles, plus glass-light for light backgrounds
colorstringcurrentColorAny CSS colour; inherits the text colour by default
strokeWidthnumber1.5Line weight for linear, twotone, broken and duotone
...propsSVG attributes–className, aria-label, onClick and the rest

What is the Keyboard Icon?

This keyboard icon draws a computer keyboard: a wide rounded rectangle with a few keys along the top and a long space bar below. Use it to open a list of keyboard shortcuts, switch between on-screen keyboards, show text entry options or mark settings for languages and typing preferences.

A few keys above a long space bar read as a keyboard even at small sizes, so people link the icon with typing, shortcuts and text entry. The command symbol is narrower in meaning: one Mac modifier key used in shortcut hints, while a code prompt means a terminal. On mobile, a keyboard with a down arrow is the familiar sign for hiding the on-screen keyboard.

When to Use the Keyboard Icon

  • Web app help menu: opens the shortcuts overlay listing keys for search, navigation and editing.
  • Phone settings: labels the keyboards section with languages, autocorrect and swipe typing options.
  • Chat composer on tablets: toggles between the on-screen keyboard and the emoji or sticker panels.
  • Accessibility settings page: marks options for sticky keys, key repeat speed and keyboard navigation.

The Keyboard 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 Keyboard Icon

  1. 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.
  2. Copy or download. Copy the SVG, or download SVG, PNG or WebP at any size from 16 to 512 px.
  3. Drop it into code. Choose React, React Native, Vue, Svelte, Angular or Flutter above and copy the ready-made KeyboardIcon component.
  4. Label it. If the icon is the only thing in a button, give it a name for screen readers: aria-label="Keyboard shortcuts". If text sits next to it, use aria-hidden="true" instead.

Design Tips for the Keyboard Icon

  • Keep the key details sparse at 16 px; adding more rows of keys turns the glyph into a grey grid that reads as a calendar.
  • Bind the shortcuts overlay to the question mark key and mention it in the button's tooltip, since keyboard users look there first.
  • Use the keyboard glyph to label shortcut lists, but write the actual keys as text in kbd elements rather than as tiny icons.

Icons That Work Well with Keyboard

Browse all devices icons

Keyboard Icon FAQ

In chat apps the typing indicator is usually three animated dots in a bubble, not a keyboard. The keyboard glyph appears instead in settings and input menus. Use the dots for someone typing now and the keyboard for options about how you type.

Yes, a keyboard is a common choice when the screen offers several ways to enter text, such as typing, voice or handwriting. Pair it with a microphone and a pen so each method has its own button, and show clearly which one is active.

Yes. The keyboard 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.