Bed icon
keyline-icons:bed
The Bed icon (keyline-icons:bed) is a free SVG icon from the Keyline Icons set. It is drawn on a 24 × 24 grid. Keyline Icons are released under the MIT license, which allows use in personal and commercial projects. Copy it as SVG, JSX, Vue or Svelte code, or download the SVG file.
- Icon set
- Keyline Icons
- Author
- Keyline Icons
- License
- MIT
- Size
- 24 × 24
SVG code
<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24"><path fill="none" stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M2 4L2 20M2 10L19 10C20.6569 10 22 11.3431 22 13L22 16L2 16ZM6 10L6 7C6 5.8954 6.8954 5 8 5L10 5C11.1046 5 12 5.8954 12 7L12 10M22 16L22 20"/></svg>How to use the Bed icon
React
import { Icon } from "@iconify/react";
<Icon icon="keyline-icons:bed" width="24" />Vue
<script setup>
import { Icon } from "@iconify/vue";
</script>
<template>
<Icon icon="keyline-icons:bed" width="24" />
</template>Svelte
<script>
import Icon from "@iconify/svelte";
</script>
<Icon icon="keyline-icons:bed" width="24" />Tailwind CSS
<!-- @iconify/tailwind plugin -->
<span class="icon-[keyline-icons--bed]"></span>UnoCSS
<!-- @unocss/preset-icons + @iconify-json/keyline-icons -->
<div class="i-keyline-icons:bed"></div>Web component
<script src="https://code.iconify.design/iconify-icon/2.1.0/iconify-icon.min.js"></script>
<iconify-icon icon="keyline-icons:bed"></iconify-icon>HTML image
<img src="https://iconyz.com/api/public/svg/keyline-icons/bed.svg" alt="Bed icon" width="24" height="24">Related icons in Keyline Icons
bed-double
bed-double-duotone
bed-double-fill
bed-double-sharp
bed-double-sharp-duotone
bed-double-sharp-fill
bed-double-sharp-two-tone
bed-double-two-tone
bed-duotone
bed-fill
bed-sharp
bed-sharp-duotone
bed-sharp-fill
bed-sharp-two-tone
bed-single
bed-single-duotone
bed-single-fill
bed-single-sharp
bed-single-sharp-duotone
bed-single-sharp-fill
bed-single-sharp-two-tone
bed-single-two-tone
bed-two-tone
Bed icon in other icon sets
Bed icon FAQ
Is the Bed icon free for commercial use?
Yes. Keyline Icons are released under the MIT license, which allows use in personal and commercial projects.
How do I use the Bed icon in React?
Install @iconify/react and render <Icon icon="keyline-icons:bed" />, or use “Copy code” on this page to get a standalone React component.
How do I add the Bed icon to a web page?
Link the SVG file in an image tag: <img src="https://iconyz.com/api/public/svg/keyline-icons/bed.svg" alt="Bed icon">, or paste the SVG code inline to style it with CSS.