---
title: "Command menu animated icon"
description: "Command menu animated icon (Everyday controls). The command key is pressed and the command fires. Light: the glyph pinches in and bottoms out with a hit (its square closes up and the four loops are drawn in with it, keeping their size) while the keycap's edge flashes up around it and spreads away, fading; the glyph springs back a little past its size and settles. Strong: a double press, a light tap then a deeper press that bottoms out harder with the keycap flash, and a bigger spring with two settling beats."
canonical: https://generativeicons.com/icons/command-menu/
---

# Command menu animated icon

The command key is pressed and the command fires. Light: the glyph pinches in and bottoms out with a hit (its square closes up and the four loops are drawn in with it, keeping their size) while the keycap's edge flashes up around it and spreads away, fading; the glyph springs back a little past its size and settles. Strong: a double press, a light tap then a deeper press that bottoms out harder with the keycap flash, and a bigger spring with two settling beats.

- Id: `command-menu`
- Category: Everyday controls
- Search terms: command palette, cmd k, ctrl k, cmdk, command key, cmd key, mac command, quick actions, launcher, quick open, cloverleaf, apple key
- 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/command-menu.lottie (dotLottie, 4711 bytes, sha256 69e7c94982935e993055b8fbb54fd7271377a262f2d94dcee2190634edd4e8e6)
- License: MIT

## Install

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

## React

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

export function CommandMenuIcon() {
  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/command-menu.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/command-menu/ · https://generativeicons.com/api/icons/command-menu
