Gentleface › Devices & hardware › keyboard
keyboard icon
keyboardKeyboard: keyboard, typing, keyboard shortcuts, keyboard input. Drawn on the 16 px grid. Free SVG, PNG and code, MIT licensed.
Animated keyboard-type · line-round
Keys go down one by one in an uneven typing rhythm, each shrinking and springing back. The space bar goes last, dipping and bowing under the thumb.
Native SVG animation, with no CSS or script. It loops by itself. Inline it to take the text color: in an <img> it draws black. To play it once on hover or click, run 0.3 s to 2.5 s. Examples and helper.
Animated, switches to keyboard-off keyboard-off-strike · line-round
The slash draws from the top-left corner and each line it crosses parts around its tip, with round ends. Going back, the slash retracts and the lines heal.
Native SVG animation, with no CSS or script. It loops by itself. Inline it to take the text color: in an <img> it draws black. To switch on click, run 0.6 s to 1.7 s and hold, then 2.2 s to 2.76 s to come back. Examples and helper.
Code line-round
<svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" viewBox="0 0 16 16" fill="currentColor" aria-hidden="true"><path d="M14.414 12.414C14.219 12.609 13.993 12.758 13.736 12.86C13.5 12.953 13.254 13 13 13L3 13C2.746 13 2.5 12.953 2.264 12.86C2.007 12.758 1.781 12.609 1.586 12.414C1.391 12.219 1.242 11.993 1.14 11.736C1.047 11.5 1 11.254 1 11L1 5C1 4.746 1.047 4.5 1.14 4.264C1.242 4.007 1.391 3.781 1.586 3.586C1.781 3.391 2.007 3.242 2.264 3.14C2.5 3.047 2.746 3 3 3L13 3C13.254 3 13.5 3.047 13.736 3.14C13.993 3.242 14.219 3.391 14.414 3.586C14.609 3.781 14.758 4.007 14.86 4.264C14.953 4.5 15 4.746 15 5L15 11C15 11.254 14.953 11.5 14.86 11.736C14.758 11.993 14.609 12.219 14.414 12.414ZM2.293 11.707C2.488 11.902 2.724 12 3 12L13 12C13.276 12 13.512 11.902 13.707 11.707C13.902 11.512 14 11.276 14 11L14 5C14 4.724 13.902 4.488 13.707 4.293C13.512 4.098 13.276 4 13 4L3 4C2.724 4 2.488 4.098 2.293 4.293C2.098 4.488 2 4.724 2 5L2 11C2 11.276 2.098 11.512 2.293 11.707ZM3 5L4 5L4 6L3 6L3 5ZM6 5L7 5L7 6L6 6L6 5ZM9 5L10 5L10 6L9 6L9 5ZM13 5L13 6L12 6L12 5L13 5ZM3 7L4 7L4 8L3 8L3 7ZM7 7L7 8L6 8L6 7L7 7ZM9 8L9 7L10 7L10 8L9 8ZM13 7L13 8L12 8L12 7L13 7ZM10.856 10.144C10.952 10.241 11 10.359 11 10.5C11 10.641 10.952 10.759 10.856 10.856C10.759 10.952 10.641 11 10.5 11L5.5 11C5.359 11 5.241 10.952 5.144 10.856C5.048 10.759 5 10.641 5 10.5C5 10.359 5.048 10.241 5.144 10.144C5.241 10.048 5.359 10 5.5 10L10.5 10C10.641 10 10.759 10.048 10.856 10.144Z"/></svg>
// Gentleface "keyboard" (line-round), MIT. https://gentleface.com/icons/keyboard
import type { SVGProps } from 'react';
export function KeyboardIcon(props: SVGProps<SVGSVGElement>) {
return (
<svg xmlns="http://www.w3.org/2000/svg" width={16} height={16} viewBox="0 0 16 16" fill="currentColor" aria-hidden="true" {...props}>
<path d="M14.414 12.414C14.219 12.609 13.993 12.758 13.736 12.86C13.5 12.953 13.254 13 13 13L3 13C2.746 13 2.5 12.953 2.264 12.86C2.007 12.758 1.781 12.609 1.586 12.414C1.391 12.219 1.242 11.993 1.14 11.736C1.047 11.5 1 11.254 1 11L1 5C1 4.746 1.047 4.5 1.14 4.264C1.242 4.007 1.391 3.781 1.586 3.586C1.781 3.391 2.007 3.242 2.264 3.14C2.5 3.047 2.746 3 3 3L13 3C13.254 3 13.5 3.047 13.736 3.14C13.993 3.242 14.219 3.391 14.414 3.586C14.609 3.781 14.758 4.007 14.86 4.264C14.953 4.5 15 4.746 15 5L15 11C15 11.254 14.953 11.5 14.86 11.736C14.758 11.993 14.609 12.219 14.414 12.414ZM2.293 11.707C2.488 11.902 2.724 12 3 12L13 12C13.276 12 13.512 11.902 13.707 11.707C13.902 11.512 14 11.276 14 11L14 5C14 4.724 13.902 4.488 13.707 4.293C13.512 4.098 13.276 4 13 4L3 4C2.724 4 2.488 4.098 2.293 4.293C2.098 4.488 2 4.724 2 5L2 11C2 11.276 2.098 11.512 2.293 11.707ZM3 5L4 5L4 6L3 6L3 5ZM6 5L7 5L7 6L6 6L6 5ZM9 5L10 5L10 6L9 6L9 5ZM13 5L13 6L12 6L12 5L13 5ZM3 7L4 7L4 8L3 8L3 7ZM7 7L7 8L6 8L6 7L7 7ZM9 8L9 7L10 7L10 8L9 8ZM13 7L13 8L12 8L12 7L13 7ZM10.856 10.144C10.952 10.241 11 10.359 11 10.5C11 10.641 10.952 10.759 10.856 10.856C10.759 10.952 10.641 11 10.5 11L5.5 11C5.359 11 5.241 10.952 5.144 10.856C5.048 10.759 5 10.641 5 10.5C5 10.359 5.048 10.241 5.144 10.144C5.241 10.048 5.359 10 5.5 10L10.5 10C10.641 10 10.759 10.048 10.856 10.144Z" />
</svg>
);
}Vue: see /icons/keyboard.md
Svelte: see /icons/keyboard.md
HTML img: see /icons/keyboard.md
CSS: see /icons/keyboard.md
Data URL: see /icons/keyboard.md
Sprite: see /icons/keyboard.md
SwiftUI: see /icons/keyboard.md
Compose: see /icons/keyboard.md
Android XML: see /icons/keyboard.md
Flutter: see /icons/keyboard.md
Each icon is drawn on the 16 px grid, and most also on the 20 and 24 px grids (at 24 in three weights: light 1 px, regular 1.5 px, bold 2 px). Show the drawing made for your size, or an exact multiple of it, on whole pixels: 16 for 16 and 32 px, 20 for 20 and 40, 24 for 24 and 48. A size in between or a fractional position blurs it. The code on each icon page is the 16 px drawing, an SVG with fill="currentColor"; the icon page's downloads follow its Grid switch, and npm has the 20 and 24 px drawings too. The snippets are decorative (aria-hidden). For an icon that carries meaning on its own, such as an icon-only button, label the button, or give the SVG role="img" and an aria-label. More in how to use.
With npm: import { KeyboardIcon } from '@gentleface/react'; (setup).
Meaning
- Use it for
- keyboard, typing, keyboard shortcuts, keyboard input, ctrl alt del, input method, shortcuts, hotkeys, keybindings, key bindings, keyboard shortcut
- Alternatives
command: the command key itself, next to a shortcut (command-key)
- Don’t confuse with
piano: the musical keyboard (musical-instrument)
- Also fits
- dialpad: a full keyboard
- command: the keyboard or shortcuts in general (keyboard)
- Not for
- piano (use
piano): the computer keyboard (typing), not the musical one
- piano (use
- Tags
- keys, type, typing, input, shortcuts
- Category
- Devices & hardware
- Component name
KeyboardIcon- History
- added
- released in 0.1.0
- 20 px drawn, 24 px drawn
- Since
- version 0.1.0
Family 11
More devices & hardware icons
av-receiver backlight backlight-low backlight-off backspace backspace-right battery battery-alert battery-arrow-right battery-charging battery-check battery-clock battery-full battery-gear battery-low battery-medium · all devices & hardware icons
For agents
Metadata: /icons/keyboard.json · Markdown: /icons/keyboard.md · SVG: https://gentleface.com/svg/{style}/16/keyboard.svg · PNG: https://gentleface.com/png/{style}/{16|32|48}/keyboard.png