---
title: "Keyboard animated icon"
description: "Keyboard animated icon (Accessibility & reading). Typing makes text. Light: the three top keys tap down in turn, left to right, and with each tap a line of text above the keyboard writes on one more step; the line fades once the word is typed. Strong: deeper, quicker taps, then the space bar thumps down with a bounce, and the typed line lifts away as it fades. The keyboard body never moves."
canonical: https://generativeicons.com/icons/keyboard/
---

# Keyboard animated icon

Typing makes text. Light: the three top keys tap down in turn, left to right, and with each tap a line of text above the keyboard writes on one more step; the line fades once the word is typed. Strong: deeper, quicker taps, then the space bar thumps down with a bounce, and the typed line lifts away as it fades. The keyboard body never moves.

- Id: `keyboard`
- Category: Accessibility & reading
- Search terms: typing, type, qwerty, keystroke, text entry, on screen keyboard, virtual keyboard, keypad, computer keyboard
- One action, back to rest
- Styles: outline, solid, duotone; outline weights 1.5, 2, 2.5 (any from 1 to 3); motion light or strong
- File: https://generativeicons.com/assets/keyboard.lottie (dotLottie, 3902 bytes, sha256 d71155044182456b606843209d62bfbb6f84efd0b97b2bb73fe50a3b480bec33)
- License: MIT

## Install

```sh
npm install @lottiefiles/generative-icons-runtime
npx generative-icons init
npx generative-icons add keyboard
```

## React

```tsx
// npm install @lottiefiles/generative-icons-react
'use client';
import { AnimatedIcon } from '@lottiefiles/generative-icons-react';
import icon, { src } from './generative-icons/keyboard.mjs';

export function KeyboardIcon() {
  return <AnimatedIcon icon={icon} src={src} size={32}
    color="#ffffff" variant="outline" weight={2}
    motion="light" theme="dark" />;
}
```

## JavaScript

```js
import { createIcon } from '@lottiefiles/generative-icons-runtime';
import icon, { src } from './generative-icons/keyboard.mjs';

const handle = await createIcon(canvas, {
  icon, src,
  color: '#ffffff', style: 'outline', weight: 2,
  motion: 'light', theme: 'dark'
});
button.addEventListener('click', () => handle.play());
// On removal: handle.destroy();
```

More: https://generativeicons.com/icons/keyboard/ · https://generativeicons.com/api/icons/keyboard
