# bed icon

Bed. Gentleface icon, drawn on the 16 px pixel grid. Free, MIT licensed. Page: https://gentleface.com/icons/bed

- Category: Home & household
- Use it for: bed, bedroom, beds
- Tags: bed, bedroom, sleep, hotel, room, furniture, rest, accommodation
- Family: bed-person
- Component name: BedIcon
- Added: 2026-10-15

## Alternatives

- `bed-double`: the double-bed or double-room type in a booking
- `bed-single`: the single-bed or single-room type
- `hospital-bed`: a patient bed or an inpatient stay
- `hotel`: a hotel or lodging as a place

## Also fits

- hospital bed: a domestic or hotel bed
- double bed: a bed or bedroom count
- single bed: a bed or bedroom count
- room: a hotel room or room type in a booking

## Not for

- hotel (use `hotel`): a bed alone means bedroom or rooms

## Files

Each SVG is 16 × 16 with fill="currentColor". Keep it at 16 px or an exact multiple (32, 48) on whole pixels: a fractional size or position blurs it.

- line-round: https://gentleface.com/svg/line-round/16/bed.svg · PNG https://gentleface.com/png/line-round/16/bed.png · https://gentleface.com/png/line-round/32/bed.png · https://gentleface.com/png/line-round/48/bed.png
- line-soft: https://gentleface.com/svg/line-soft/16/bed.svg · PNG https://gentleface.com/png/line-soft/16/bed.png · https://gentleface.com/png/line-soft/32/bed.png · https://gentleface.com/png/line-soft/48/bed.png
- line-sharp: https://gentleface.com/svg/line-sharp/16/bed.svg · PNG https://gentleface.com/png/line-sharp/16/bed.png · https://gentleface.com/png/line-sharp/32/bed.png · https://gentleface.com/png/line-sharp/48/bed.png
- solid-round: https://gentleface.com/svg/solid-round/16/bed.svg · PNG https://gentleface.com/png/solid-round/16/bed.png · https://gentleface.com/png/solid-round/32/bed.png · https://gentleface.com/png/solid-round/48/bed.png
- solid-soft: https://gentleface.com/svg/solid-soft/16/bed.svg · PNG https://gentleface.com/png/solid-soft/16/bed.png · https://gentleface.com/png/solid-soft/32/bed.png · https://gentleface.com/png/solid-soft/48/bed.png
- solid-sharp: https://gentleface.com/svg/solid-sharp/16/bed.svg · PNG https://gentleface.com/png/solid-sharp/16/bed.png · https://gentleface.com/png/solid-sharp/32/bed.png · https://gentleface.com/png/solid-sharp/48/bed.png

The SVG of every style: https://gentleface.com/icons/bed.json (`svg`).

## Code (line-round)

The snippets are decorative (aria-hidden). For an icon that carries meaning on its own, such as an icon-only button, label the button, or give the SVG role="img" and an aria-label. For another style, take its SVG from the JSON and swap the path `d`.

### SVG

```svg
<svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" viewBox="0 0 16 16" fill="currentColor" aria-hidden="true"><path d="M3 7.5C3 7.309 3.035 7.125 3.105 6.948C3.182 6.755 3.293 6.586 3.439 6.439C3.586 6.293 3.755 6.182 3.948 6.105C4.125 6.035 4.309 6 4.5 6L6.5 6C6.691 6 6.875 6.035 7.052 6.105C7.245 6.182 7.414 6.293 7.561 6.439C7.707 6.586 7.818 6.755 7.895 6.948C7.965 7.125 8 7.309 8 7.5L8 8L14 8L14 6.5C14 6.359 14.048 6.241 14.144 6.144C14.241 6.048 14.359 6 14.5 6C14.641 6 14.759 6.048 14.856 6.144C14.952 6.241 15 6.359 15 6.5L15 14.5C15 14.641 14.952 14.759 14.856 14.856C14.759 14.952 14.641 15 14.5 15C14.359 15 14.241 14.952 14.144 14.856C14.048 14.759 14 14.641 14 14.5L14 12L2 12L2 14.5C2 14.641 1.952 14.759 1.856 14.856C1.759 14.952 1.641 15 1.5 15C1.359 15 1.241 14.952 1.144 14.856C1.048 14.759 1 14.641 1 14.5L1 2.5C1 2.359 1.048 2.241 1.144 2.144C1.241 2.048 1.359 2 1.5 2C1.641 2 1.759 2.048 1.856 2.144C1.952 2.241 2 2.359 2 2.5L2 8L3 8L3 7.5ZM7 7.5C7 7.362 6.951 7.244 6.854 7.146C6.756 7.049 6.638 7 6.5 7L4.5 7C4.362 7 4.244 7.049 4.146 7.146C4.049 7.244 4 7.362 4 7.5L4 8L7 8L7 7.5ZM14 9L2 9L2 11L14 11L14 9Z"/></svg>
```

### React

```tsx
// Gentleface "bed" (line-round), MIT. https://gentleface.com/icons/bed
import type { SVGProps } from 'react';

export function BedIcon(props: SVGProps<SVGSVGElement>) {
  return (
    <svg xmlns="http://www.w3.org/2000/svg" width={16} height={16} viewBox="0 0 16 16" fill="currentColor" aria-hidden="true" {...props}>
      <path d="M3 7.5C3 7.309 3.035 7.125 3.105 6.948C3.182 6.755 3.293 6.586 3.439 6.439C3.586 6.293 3.755 6.182 3.948 6.105C4.125 6.035 4.309 6 4.5 6L6.5 6C6.691 6 6.875 6.035 7.052 6.105C7.245 6.182 7.414 6.293 7.561 6.439C7.707 6.586 7.818 6.755 7.895 6.948C7.965 7.125 8 7.309 8 7.5L8 8L14 8L14 6.5C14 6.359 14.048 6.241 14.144 6.144C14.241 6.048 14.359 6 14.5 6C14.641 6 14.759 6.048 14.856 6.144C14.952 6.241 15 6.359 15 6.5L15 14.5C15 14.641 14.952 14.759 14.856 14.856C14.759 14.952 14.641 15 14.5 15C14.359 15 14.241 14.952 14.144 14.856C14.048 14.759 14 14.641 14 14.5L14 12L2 12L2 14.5C2 14.641 1.952 14.759 1.856 14.856C1.759 14.952 1.641 15 1.5 15C1.359 15 1.241 14.952 1.144 14.856C1.048 14.759 1 14.641 1 14.5L1 2.5C1 2.359 1.048 2.241 1.144 2.144C1.241 2.048 1.359 2 1.5 2C1.641 2 1.759 2.048 1.856 2.144C1.952 2.241 2 2.359 2 2.5L2 8L3 8L3 7.5ZM7 7.5C7 7.362 6.951 7.244 6.854 7.146C6.756 7.049 6.638 7 6.5 7L4.5 7C4.362 7 4.244 7.049 4.146 7.146C4.049 7.244 4 7.362 4 7.5L4 8L7 8L7 7.5ZM14 9L2 9L2 11L14 11L14 9Z" />
    </svg>
  );
}
```

### Vue

```vue
<!-- Gentleface "bed" (line-round), MIT. https://gentleface.com/icons/bed -->
<template>
  <svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" viewBox="0 0 16 16" fill="currentColor" aria-hidden="true">
    <path d="M3 7.5C3 7.309 3.035 7.125 3.105 6.948C3.182 6.755 3.293 6.586 3.439 6.439C3.586 6.293 3.755 6.182 3.948 6.105C4.125 6.035 4.309 6 4.5 6L6.5 6C6.691 6 6.875 6.035 7.052 6.105C7.245 6.182 7.414 6.293 7.561 6.439C7.707 6.586 7.818 6.755 7.895 6.948C7.965 7.125 8 7.309 8 7.5L8 8L14 8L14 6.5C14 6.359 14.048 6.241 14.144 6.144C14.241 6.048 14.359 6 14.5 6C14.641 6 14.759 6.048 14.856 6.144C14.952 6.241 15 6.359 15 6.5L15 14.5C15 14.641 14.952 14.759 14.856 14.856C14.759 14.952 14.641 15 14.5 15C14.359 15 14.241 14.952 14.144 14.856C14.048 14.759 14 14.641 14 14.5L14 12L2 12L2 14.5C2 14.641 1.952 14.759 1.856 14.856C1.759 14.952 1.641 15 1.5 15C1.359 15 1.241 14.952 1.144 14.856C1.048 14.759 1 14.641 1 14.5L1 2.5C1 2.359 1.048 2.241 1.144 2.144C1.241 2.048 1.359 2 1.5 2C1.641 2 1.759 2.048 1.856 2.144C1.952 2.241 2 2.359 2 2.5L2 8L3 8L3 7.5ZM7 7.5C7 7.362 6.951 7.244 6.854 7.146C6.756 7.049 6.638 7 6.5 7L4.5 7C4.362 7 4.244 7.049 4.146 7.146C4.049 7.244 4 7.362 4 7.5L4 8L7 8L7 7.5ZM14 9L2 9L2 11L14 11L14 9Z" />
  </svg>
</template>
```

### Svelte

```svelte
<!-- Gentleface "bed" (line-round), MIT. https://gentleface.com/icons/bed -->
<script>
  let props = $props();
</script>

<svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" viewBox="0 0 16 16" fill="currentColor" aria-hidden="true" {...props}>
  <path d="M3 7.5C3 7.309 3.035 7.125 3.105 6.948C3.182 6.755 3.293 6.586 3.439 6.439C3.586 6.293 3.755 6.182 3.948 6.105C4.125 6.035 4.309 6 4.5 6L6.5 6C6.691 6 6.875 6.035 7.052 6.105C7.245 6.182 7.414 6.293 7.561 6.439C7.707 6.586 7.818 6.755 7.895 6.948C7.965 7.125 8 7.309 8 7.5L8 8L14 8L14 6.5C14 6.359 14.048 6.241 14.144 6.144C14.241 6.048 14.359 6 14.5 6C14.641 6 14.759 6.048 14.856 6.144C14.952 6.241 15 6.359 15 6.5L15 14.5C15 14.641 14.952 14.759 14.856 14.856C14.759 14.952 14.641 15 14.5 15C14.359 15 14.241 14.952 14.144 14.856C14.048 14.759 14 14.641 14 14.5L14 12L2 12L2 14.5C2 14.641 1.952 14.759 1.856 14.856C1.759 14.952 1.641 15 1.5 15C1.359 15 1.241 14.952 1.144 14.856C1.048 14.759 1 14.641 1 14.5L1 2.5C1 2.359 1.048 2.241 1.144 2.144C1.241 2.048 1.359 2 1.5 2C1.641 2 1.759 2.048 1.856 2.144C1.952 2.241 2 2.359 2 2.5L2 8L3 8L3 7.5ZM7 7.5C7 7.362 6.951 7.244 6.854 7.146C6.756 7.049 6.638 7 6.5 7L4.5 7C4.362 7 4.244 7.049 4.146 7.146C4.049 7.244 4 7.362 4 7.5L4 8L7 8L7 7.5ZM14 9L2 9L2 11L14 11L14 9Z" />
</svg>
```

### HTML img

```html
<!-- Gentleface "bed" (line-round), MIT. https://gentleface.com/icons/bed. An <img> can't take currentColor: it draws black. Inline the SVG or use the CSS mask to color it. -->
<img src="https://gentleface.com/svg/line-round/16/bed.svg" width="16" height="16" alt="">
```

### CSS

```css
/* Gentleface "bed" (line-round), MIT. https://gentleface.com/icons/bed. Takes the text color. */
.icon-bed {
  display: inline-block;
  width: 16px;
  height: 16px;
  background-color: currentColor;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 16 16' fill='currentColor'%3E%3Cpath d='M3 7.5C3 7.309 3.035 7.125 3.105 6.948C3.182 6.755 3.293 6.586 3.439 6.439C3.586 6.293 3.755 6.182 3.948 6.105C4.125 6.035 4.309 6 4.5 6L6.5 6C6.691 6 6.875 6.035 7.052 6.105C7.245 6.182 7.414 6.293 7.561 6.439C7.707 6.586 7.818 6.755 7.895 6.948C7.965 7.125 8 7.309 8 7.5L8 8L14 8L14 6.5C14 6.359 14.048 6.241 14.144 6.144C14.241 6.048 14.359 6 14.5 6C14.641 6 14.759 6.048 14.856 6.144C14.952 6.241 15 6.359 15 6.5L15 14.5C15 14.641 14.952 14.759 14.856 14.856C14.759 14.952 14.641 15 14.5 15C14.359 15 14.241 14.952 14.144 14.856C14.048 14.759 14 14.641 14 14.5L14 12L2 12L2 14.5C2 14.641 1.952 14.759 1.856 14.856C1.759 14.952 1.641 15 1.5 15C1.359 15 1.241 14.952 1.144 14.856C1.048 14.759 1 14.641 1 14.5L1 2.5C1 2.359 1.048 2.241 1.144 2.144C1.241 2.048 1.359 2 1.5 2C1.641 2 1.759 2.048 1.856 2.144C1.952 2.241 2 2.359 2 2.5L2 8L3 8L3 7.5ZM7 7.5C7 7.362 6.951 7.244 6.854 7.146C6.756 7.049 6.638 7 6.5 7L4.5 7C4.362 7 4.244 7.049 4.146 7.146C4.049 7.244 4 7.362 4 7.5L4 8L7 8L7 7.5ZM14 9L2 9L2 11L14 11L14 9Z'/%3E%3C/svg%3E") center / 16px 16px no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 16 16' fill='currentColor'%3E%3Cpath d='M3 7.5C3 7.309 3.035 7.125 3.105 6.948C3.182 6.755 3.293 6.586 3.439 6.439C3.586 6.293 3.755 6.182 3.948 6.105C4.125 6.035 4.309 6 4.5 6L6.5 6C6.691 6 6.875 6.035 7.052 6.105C7.245 6.182 7.414 6.293 7.561 6.439C7.707 6.586 7.818 6.755 7.895 6.948C7.965 7.125 8 7.309 8 7.5L8 8L14 8L14 6.5C14 6.359 14.048 6.241 14.144 6.144C14.241 6.048 14.359 6 14.5 6C14.641 6 14.759 6.048 14.856 6.144C14.952 6.241 15 6.359 15 6.5L15 14.5C15 14.641 14.952 14.759 14.856 14.856C14.759 14.952 14.641 15 14.5 15C14.359 15 14.241 14.952 14.144 14.856C14.048 14.759 14 14.641 14 14.5L14 12L2 12L2 14.5C2 14.641 1.952 14.759 1.856 14.856C1.759 14.952 1.641 15 1.5 15C1.359 15 1.241 14.952 1.144 14.856C1.048 14.759 1 14.641 1 14.5L1 2.5C1 2.359 1.048 2.241 1.144 2.144C1.241 2.048 1.359 2 1.5 2C1.641 2 1.759 2.048 1.856 2.144C1.952 2.241 2 2.359 2 2.5L2 8L3 8L3 7.5ZM7 7.5C7 7.362 6.951 7.244 6.854 7.146C6.756 7.049 6.638 7 6.5 7L4.5 7C4.362 7 4.244 7.049 4.146 7.146C4.049 7.244 4 7.362 4 7.5L4 8L7 8L7 7.5ZM14 9L2 9L2 11L14 11L14 9Z'/%3E%3C/svg%3E") center / 16px 16px no-repeat;
}
```

### Data URL

```text
data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 16 16' fill='currentColor'%3E%3Cpath d='M3 7.5C3 7.309 3.035 7.125 3.105 6.948C3.182 6.755 3.293 6.586 3.439 6.439C3.586 6.293 3.755 6.182 3.948 6.105C4.125 6.035 4.309 6 4.5 6L6.5 6C6.691 6 6.875 6.035 7.052 6.105C7.245 6.182 7.414 6.293 7.561 6.439C7.707 6.586 7.818 6.755 7.895 6.948C7.965 7.125 8 7.309 8 7.5L8 8L14 8L14 6.5C14 6.359 14.048 6.241 14.144 6.144C14.241 6.048 14.359 6 14.5 6C14.641 6 14.759 6.048 14.856 6.144C14.952 6.241 15 6.359 15 6.5L15 14.5C15 14.641 14.952 14.759 14.856 14.856C14.759 14.952 14.641 15 14.5 15C14.359 15 14.241 14.952 14.144 14.856C14.048 14.759 14 14.641 14 14.5L14 12L2 12L2 14.5C2 14.641 1.952 14.759 1.856 14.856C1.759 14.952 1.641 15 1.5 15C1.359 15 1.241 14.952 1.144 14.856C1.048 14.759 1 14.641 1 14.5L1 2.5C1 2.359 1.048 2.241 1.144 2.144C1.241 2.048 1.359 2 1.5 2C1.641 2 1.759 2.048 1.856 2.144C1.952 2.241 2 2.359 2 2.5L2 8L3 8L3 7.5ZM7 7.5C7 7.362 6.951 7.244 6.854 7.146C6.756 7.049 6.638 7 6.5 7L4.5 7C4.362 7 4.244 7.049 4.146 7.146C4.049 7.244 4 7.362 4 7.5L4 8L7 8L7 7.5ZM14 9L2 9L2 11L14 11L14 9Z'/%3E%3C/svg%3E
```

### Sprite

```html
<!-- Gentleface "bed" (line-round), MIT. https://gentleface.com/icons/bed
     Every icon of this style in one file: https://gentleface.com/sprite/line-round.svg
     Serve it from your own origin: <use> does not load from another origin. -->
<svg width="16" height="16" aria-hidden="true"><use href="/sprite/line-round.svg#bed"/></svg>
```

### SwiftUI

```swift
// Gentleface "bed" (line-round), MIT. https://gentleface.com/icons/bed
import SwiftUI

struct BedIcon: Shape {
    func path(in rect: CGRect) -> Path {
        var p = Path()
        p.move(to: CGPoint(x: 3, y: 7.5))
        p.addCurve(to: CGPoint(x: 3.105, y: 6.948), control1: CGPoint(x: 3, y: 7.309), control2: CGPoint(x: 3.035, y: 7.125))
        p.addCurve(to: CGPoint(x: 3.439, y: 6.439), control1: CGPoint(x: 3.182, y: 6.755), control2: CGPoint(x: 3.293, y: 6.586))
        p.addCurve(to: CGPoint(x: 3.948, y: 6.105), control1: CGPoint(x: 3.586, y: 6.293), control2: CGPoint(x: 3.755, y: 6.182))
        p.addCurve(to: CGPoint(x: 4.5, y: 6), control1: CGPoint(x: 4.125, y: 6.035), control2: CGPoint(x: 4.309, y: 6))
        p.addLine(to: CGPoint(x: 6.5, y: 6))
        p.addCurve(to: CGPoint(x: 7.052, y: 6.105), control1: CGPoint(x: 6.691, y: 6), control2: CGPoint(x: 6.875, y: 6.035))
        p.addCurve(to: CGPoint(x: 7.561, y: 6.439), control1: CGPoint(x: 7.245, y: 6.182), control2: CGPoint(x: 7.414, y: 6.293))
        p.addCurve(to: CGPoint(x: 7.895, y: 6.948), control1: CGPoint(x: 7.707, y: 6.586), control2: CGPoint(x: 7.818, y: 6.755))
        p.addCurve(to: CGPoint(x: 8, y: 7.5), control1: CGPoint(x: 7.965, y: 7.125), control2: CGPoint(x: 8, y: 7.309))
        p.addLine(to: CGPoint(x: 8, y: 8))
        p.addLine(to: CGPoint(x: 14, y: 8))
        p.addLine(to: CGPoint(x: 14, y: 6.5))
        p.addCurve(to: CGPoint(x: 14.144, y: 6.144), control1: CGPoint(x: 14, y: 6.359), control2: CGPoint(x: 14.048, y: 6.241))
        p.addCurve(to: CGPoint(x: 14.5, y: 6), control1: CGPoint(x: 14.241, y: 6.048), control2: CGPoint(x: 14.359, y: 6))
        p.addCurve(to: CGPoint(x: 14.856, y: 6.144), control1: CGPoint(x: 14.641, y: 6), control2: CGPoint(x: 14.759, y: 6.048))
        p.addCurve(to: CGPoint(x: 15, y: 6.5), control1: CGPoint(x: 14.952, y: 6.241), control2: CGPoint(x: 15, y: 6.359))
        p.addLine(to: CGPoint(x: 15, y: 14.5))
        p.addCurve(to: CGPoint(x: 14.856, y: 14.856), control1: CGPoint(x: 15, y: 14.641), control2: CGPoint(x: 14.952, y: 14.759))
        p.addCurve(to: CGPoint(x: 14.5, y: 15), control1: CGPoint(x: 14.759, y: 14.952), control2: CGPoint(x: 14.641, y: 15))
        p.addCurve(to: CGPoint(x: 14.144, y: 14.856), control1: CGPoint(x: 14.359, y: 15), control2: CGPoint(x: 14.241, y: 14.952))
        p.addCurve(to: CGPoint(x: 14, y: 14.5), control1: CGPoint(x: 14.048, y: 14.759), control2: CGPoint(x: 14, y: 14.641))
        p.addLine(to: CGPoint(x: 14, y: 12))
        p.addLine(to: CGPoint(x: 2, y: 12))
        p.addLine(to: CGPoint(x: 2, y: 14.5))
        p.addCurve(to: CGPoint(x: 1.856, y: 14.856), control1: CGPoint(x: 2, y: 14.641), control2: CGPoint(x: 1.952, y: 14.759))
        p.addCurve(to: CGPoint(x: 1.5, y: 15), control1: CGPoint(x: 1.759, y: 14.952), control2: CGPoint(x: 1.641, y: 15))
        p.addCurve(to: CGPoint(x: 1.144, y: 14.856), control1: CGPoint(x: 1.359, y: 15), control2: CGPoint(x: 1.241, y: 14.952))
        p.addCurve(to: CGPoint(x: 1, y: 14.5), control1: CGPoint(x: 1.048, y: 14.759), control2: CGPoint(x: 1, y: 14.641))
        p.addLine(to: CGPoint(x: 1, y: 2.5))
        p.addCurve(to: CGPoint(x: 1.144, y: 2.144), control1: CGPoint(x: 1, y: 2.359), control2: CGPoint(x: 1.048, y: 2.241))
        p.addCurve(to: CGPoint(x: 1.5, y: 2), control1: CGPoint(x: 1.241, y: 2.048), control2: CGPoint(x: 1.359, y: 2))
        p.addCurve(to: CGPoint(x: 1.856, y: 2.144), control1: CGPoint(x: 1.641, y: 2), control2: CGPoint(x: 1.759, y: 2.048))
        p.addCurve(to: CGPoint(x: 2, y: 2.5), control1: CGPoint(x: 1.952, y: 2.241), control2: CGPoint(x: 2, y: 2.359))
        p.addLine(to: CGPoint(x: 2, y: 8))
        p.addLine(to: CGPoint(x: 3, y: 8))
        p.addLine(to: CGPoint(x: 3, y: 7.5))
        p.closeSubpath()
        p.move(to: CGPoint(x: 7, y: 7.5))
        p.addCurve(to: CGPoint(x: 6.854, y: 7.146), control1: CGPoint(x: 7, y: 7.362), control2: CGPoint(x: 6.951, y: 7.244))
        p.addCurve(to: CGPoint(x: 6.5, y: 7), control1: CGPoint(x: 6.756, y: 7.049), control2: CGPoint(x: 6.638, y: 7))
        p.addLine(to: CGPoint(x: 4.5, y: 7))
        p.addCurve(to: CGPoint(x: 4.146, y: 7.146), control1: CGPoint(x: 4.362, y: 7), control2: CGPoint(x: 4.244, y: 7.049))
        p.addCurve(to: CGPoint(x: 4, y: 7.5), control1: CGPoint(x: 4.049, y: 7.244), control2: CGPoint(x: 4, y: 7.362))
        p.addLine(to: CGPoint(x: 4, y: 8))
        p.addLine(to: CGPoint(x: 7, y: 8))
        p.addLine(to: CGPoint(x: 7, y: 7.5))
        p.closeSubpath()
        p.move(to: CGPoint(x: 14, y: 9))
        p.addLine(to: CGPoint(x: 2, y: 9))
        p.addLine(to: CGPoint(x: 2, y: 11))
        p.addLine(to: CGPoint(x: 14, y: 11))
        p.addLine(to: CGPoint(x: 14, y: 9))
        p.closeSubpath()
        return p.applying(CGAffineTransform(scaleX: rect.width / 16, y: rect.height / 16))
    }
}

// BedIcon().frame(width: 16, height: 16) fills with the foreground style. Keep it on whole points to stay crisp.
```

### Compose

```kotlin
// Gentleface "bed" (line-round), MIT. https://gentleface.com/icons/bed
import androidx.compose.ui.graphics.Color
import androidx.compose.ui.graphics.SolidColor
import androidx.compose.ui.graphics.vector.ImageVector
import androidx.compose.ui.graphics.vector.addPathNodes
import androidx.compose.ui.unit.dp

val BedIcon: ImageVector by lazy {
    ImageVector.Builder(
        name = "bed", defaultWidth = 16.dp, defaultHeight = 16.dp,
        viewportWidth = 16f, viewportHeight = 16f,
    ).addPath(
        pathData = addPathNodes("M3 7.5C3 7.309 3.035 7.125 3.105 6.948C3.182 6.755 3.293 6.586 3.439 6.439C3.586 6.293 3.755 6.182 3.948 6.105C4.125 6.035 4.309 6 4.5 6L6.5 6C6.691 6 6.875 6.035 7.052 6.105C7.245 6.182 7.414 6.293 7.561 6.439C7.707 6.586 7.818 6.755 7.895 6.948C7.965 7.125 8 7.309 8 7.5L8 8L14 8L14 6.5C14 6.359 14.048 6.241 14.144 6.144C14.241 6.048 14.359 6 14.5 6C14.641 6 14.759 6.048 14.856 6.144C14.952 6.241 15 6.359 15 6.5L15 14.5C15 14.641 14.952 14.759 14.856 14.856C14.759 14.952 14.641 15 14.5 15C14.359 15 14.241 14.952 14.144 14.856C14.048 14.759 14 14.641 14 14.5L14 12L2 12L2 14.5C2 14.641 1.952 14.759 1.856 14.856C1.759 14.952 1.641 15 1.5 15C1.359 15 1.241 14.952 1.144 14.856C1.048 14.759 1 14.641 1 14.5L1 2.5C1 2.359 1.048 2.241 1.144 2.144C1.241 2.048 1.359 2 1.5 2C1.641 2 1.759 2.048 1.856 2.144C1.952 2.241 2 2.359 2 2.5L2 8L3 8L3 7.5ZM7 7.5C7 7.362 6.951 7.244 6.854 7.146C6.756 7.049 6.638 7 6.5 7L4.5 7C4.362 7 4.244 7.049 4.146 7.146C4.049 7.244 4 7.362 4 7.5L4 8L7 8L7 7.5ZM14 9L2 9L2 11L14 11L14 9Z"),
        fill = SolidColor(Color.Black),
    ).build()
}

// Icon(BedIcon, contentDescription = null) tints it with LocalContentColor.
```

### Android XML

```xml
<!-- res/drawable/ic_bed.xml · Gentleface "bed" (line-round), MIT. https://gentleface.com/icons/bed -->
<vector xmlns:android="http://schemas.android.com/apk/res/android"
    android:width="16dp"
    android:height="16dp"
    android:viewportWidth="16"
    android:viewportHeight="16"
    android:tint="?attr/colorControlNormal">
  <path
      android:fillColor="@android:color/white"
      android:pathData="M3 7.5C3 7.309 3.035 7.125 3.105 6.948C3.182 6.755 3.293 6.586 3.439 6.439C3.586 6.293 3.755 6.182 3.948 6.105C4.125 6.035 4.309 6 4.5 6L6.5 6C6.691 6 6.875 6.035 7.052 6.105C7.245 6.182 7.414 6.293 7.561 6.439C7.707 6.586 7.818 6.755 7.895 6.948C7.965 7.125 8 7.309 8 7.5L8 8L14 8L14 6.5C14 6.359 14.048 6.241 14.144 6.144C14.241 6.048 14.359 6 14.5 6C14.641 6 14.759 6.048 14.856 6.144C14.952 6.241 15 6.359 15 6.5L15 14.5C15 14.641 14.952 14.759 14.856 14.856C14.759 14.952 14.641 15 14.5 15C14.359 15 14.241 14.952 14.144 14.856C14.048 14.759 14 14.641 14 14.5L14 12L2 12L2 14.5C2 14.641 1.952 14.759 1.856 14.856C1.759 14.952 1.641 15 1.5 15C1.359 15 1.241 14.952 1.144 14.856C1.048 14.759 1 14.641 1 14.5L1 2.5C1 2.359 1.048 2.241 1.144 2.144C1.241 2.048 1.359 2 1.5 2C1.641 2 1.759 2.048 1.856 2.144C1.952 2.241 2 2.359 2 2.5L2 8L3 8L3 7.5ZM7 7.5C7 7.362 6.951 7.244 6.854 7.146C6.756 7.049 6.638 7 6.5 7L4.5 7C4.362 7 4.244 7.049 4.146 7.146C4.049 7.244 4 7.362 4 7.5L4 8L7 8L7 7.5ZM14 9L2 9L2 11L14 11L14 9Z"/>
</vector>
```

### Flutter

```dart
// Gentleface "bed" (line-round), MIT. https://gentleface.com/icons/bed
import 'package:flutter/widgets.dart';

class BedIcon extends StatelessWidget {
  const BedIcon({super.key, this.size = 16, this.color});
  final double size;
  final Color? color;

  @override
  Widget build(BuildContext context) => CustomPaint(
        size: Size.square(size),
        painter: _BedIconPainter(color ?? IconTheme.of(context).color ?? const Color(0xFF000000)),
      );
}

class _BedIconPainter extends CustomPainter {
  _BedIconPainter(this.color);
  final Color color;

  @override
  void paint(Canvas canvas, Size size) {
    canvas.scale(size.width / 16, size.height / 16);
    final p = Path()
      ..moveTo(3, 7.5)
      ..cubicTo(3, 7.309, 3.035, 7.125, 3.105, 6.948)
      ..cubicTo(3.182, 6.755, 3.293, 6.586, 3.439, 6.439)
      ..cubicTo(3.586, 6.293, 3.755, 6.182, 3.948, 6.105)
      ..cubicTo(4.125, 6.035, 4.309, 6, 4.5, 6)
      ..lineTo(6.5, 6)
      ..cubicTo(6.691, 6, 6.875, 6.035, 7.052, 6.105)
      ..cubicTo(7.245, 6.182, 7.414, 6.293, 7.561, 6.439)
      ..cubicTo(7.707, 6.586, 7.818, 6.755, 7.895, 6.948)
      ..cubicTo(7.965, 7.125, 8, 7.309, 8, 7.5)
      ..lineTo(8, 8)
      ..lineTo(14, 8)
      ..lineTo(14, 6.5)
      ..cubicTo(14, 6.359, 14.048, 6.241, 14.144, 6.144)
      ..cubicTo(14.241, 6.048, 14.359, 6, 14.5, 6)
      ..cubicTo(14.641, 6, 14.759, 6.048, 14.856, 6.144)
      ..cubicTo(14.952, 6.241, 15, 6.359, 15, 6.5)
      ..lineTo(15, 14.5)
      ..cubicTo(15, 14.641, 14.952, 14.759, 14.856, 14.856)
      ..cubicTo(14.759, 14.952, 14.641, 15, 14.5, 15)
      ..cubicTo(14.359, 15, 14.241, 14.952, 14.144, 14.856)
      ..cubicTo(14.048, 14.759, 14, 14.641, 14, 14.5)
      ..lineTo(14, 12)
      ..lineTo(2, 12)
      ..lineTo(2, 14.5)
      ..cubicTo(2, 14.641, 1.952, 14.759, 1.856, 14.856)
      ..cubicTo(1.759, 14.952, 1.641, 15, 1.5, 15)
      ..cubicTo(1.359, 15, 1.241, 14.952, 1.144, 14.856)
      ..cubicTo(1.048, 14.759, 1, 14.641, 1, 14.5)
      ..lineTo(1, 2.5)
      ..cubicTo(1, 2.359, 1.048, 2.241, 1.144, 2.144)
      ..cubicTo(1.241, 2.048, 1.359, 2, 1.5, 2)
      ..cubicTo(1.641, 2, 1.759, 2.048, 1.856, 2.144)
      ..cubicTo(1.952, 2.241, 2, 2.359, 2, 2.5)
      ..lineTo(2, 8)
      ..lineTo(3, 8)
      ..lineTo(3, 7.5)
      ..close()
      ..moveTo(7, 7.5)
      ..cubicTo(7, 7.362, 6.951, 7.244, 6.854, 7.146)
      ..cubicTo(6.756, 7.049, 6.638, 7, 6.5, 7)
      ..lineTo(4.5, 7)
      ..cubicTo(4.362, 7, 4.244, 7.049, 4.146, 7.146)
      ..cubicTo(4.049, 7.244, 4, 7.362, 4, 7.5)
      ..lineTo(4, 8)
      ..lineTo(7, 8)
      ..lineTo(7, 7.5)
      ..close()
      ..moveTo(14, 9)
      ..lineTo(2, 9)
      ..lineTo(2, 11)
      ..lineTo(14, 11)
      ..lineTo(14, 9)
      ..close();
    canvas.drawPath(p, Paint()..color = color);
  }

  @override
  bool shouldRepaint(_BedIconPainter old) => old.color != color;
}
```
