---
title: "Bed animated icon"
description: "Bed animated icon (Travel). Someone goes to sleep. Light: a head lands on the pillow, which squashes with a hit and lofts back with a small rebound; the duvet settles a beat later, and one z drifts up from the pillow, growing, and fades. Strong: a heavier landing, then a second, smaller snuggle into the pillow, with two z's drifting up in turn. The headboard, mattress and foot never move."
canonical: https://generativeicons.com/icons/bed/
---

# Bed animated icon

Someone goes to sleep. Light: a head lands on the pillow, which squashes with a hit and lofts back with a small rebound; the duvet settles a beat later, and one z drifts up from the pillow, growing, and fades. Strong: a heavier landing, then a second, smaller snuggle into the pillow, with two z's drifting up in turn. The headboard, mattress and foot never move.

- Id: `bed`
- Category: Travel
- Search terms: sleep, sleeping, bedroom, bedtime, nap, rest, mattress, pillow, duvet, hotel room, double bed, lie down
- 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/bed.lottie (dotLottie, 5598 bytes, sha256 37ac6b699f55da2a5274c2b822f3f1c15296bd68bc3da6434ea8ec457e4c8a9c)
- License: MIT

## Install

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

## React

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

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