ICONYZ
English
Bed icon from Font Awesome 4

Bed icon

fa:bed

The Bed icon (fa:bed) is a free SVG icon from the Font Awesome 4 set by Dave Gandy. It is drawn on a 2048 × 1280 grid. Font Awesome 4 icons are released under the Open Font 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
Font Awesome 4
Author
Dave Gandy
License
OFL-1.1
Size
2048 × 1280
Tags
hotel
Download SVG

SVG code

<svg xmlns="http://www.w3.org/2000/svg" width="2048" height="1280" viewBox="0 0 2048 1280"><path fill="currentColor" d="M256 768h1728q26 0 45 19t19 45v448h-256v-256H256v256H0V64q0-26 19-45T64 0h128q26 0 45 19t19 45zm576-320q0-106-75-181t-181-75t-181 75t-75 181t75 181t181 75t181-75t75-181m1216 256v-64q0-159-112.5-271.5T1664 256H960q-26 0-45 19t-19 45v384z"/></svg>

How to use the Bed icon

React

import { Icon } from "@iconify/react";

<Icon icon="fa:bed" width="24" />

Vue

<script setup>
import { Icon } from "@iconify/vue";
</script>

<template>
  <Icon icon="fa:bed" width="24" />
</template>

Svelte

<script>
  import Icon from "@iconify/svelte";
</script>

<Icon icon="fa:bed" width="24" />

Tailwind CSS

<!-- @iconify/tailwind plugin -->
<span class="icon-[fa--bed]"></span>

UnoCSS

<!-- @unocss/preset-icons + @iconify-json/fa -->
<div class="i-fa:bed"></div>

Web component

<script src="https://code.iconify.design/iconify-icon/2.1.0/iconify-icon.min.js"></script>

<iconify-icon icon="fa:bed"></iconify-icon>

HTML image

<img src="https://iconyz.com/api/public/svg/fa/bed.svg" alt="Bed icon" width="24" height="24">

Bed icon in other icon sets

Bed icon FAQ

Is the Bed icon free for commercial use?

Yes. Font Awesome 4 icons are released under the Open Font 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="fa: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/fa/bed.svg" alt="Bed icon">, or paste the SVG code inline to style it with CSS.

Browse all Font Awesome 4 icons →