# rectangle icon

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

- Category: Shapes
- Use it for: rectangle, rectangle tool, rectangle shape
- Tags: rectangle, shape, landscape, box, frame, geometry
- Family: rectangle-vertical
- Component name: RectangleIcon
- Added: 2026-10-15

## Alternatives

- `square`: a square shape (square)
- `rectangle-vertical`: portrait orientation (portrait-orientation)

## Also fits

- square: a rectangle shape (rectangle)

## 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/rectangle.svg · PNG https://gentleface.com/png/line-round/16/rectangle.png · https://gentleface.com/png/line-round/32/rectangle.png · https://gentleface.com/png/line-round/48/rectangle.png
- line-soft: https://gentleface.com/svg/line-soft/16/rectangle.svg · PNG https://gentleface.com/png/line-soft/16/rectangle.png · https://gentleface.com/png/line-soft/32/rectangle.png · https://gentleface.com/png/line-soft/48/rectangle.png
- line-sharp: https://gentleface.com/svg/line-sharp/16/rectangle.svg · PNG https://gentleface.com/png/line-sharp/16/rectangle.png · https://gentleface.com/png/line-sharp/32/rectangle.png · https://gentleface.com/png/line-sharp/48/rectangle.png
- solid-round: https://gentleface.com/svg/solid-round/16/rectangle.svg · PNG https://gentleface.com/png/solid-round/16/rectangle.png · https://gentleface.com/png/solid-round/32/rectangle.png · https://gentleface.com/png/solid-round/48/rectangle.png
- solid-soft: https://gentleface.com/svg/solid-soft/16/rectangle.svg · PNG https://gentleface.com/png/solid-soft/16/rectangle.png · https://gentleface.com/png/solid-soft/32/rectangle.png · https://gentleface.com/png/solid-soft/48/rectangle.png
- solid-sharp: https://gentleface.com/svg/solid-sharp/16/rectangle.svg · PNG https://gentleface.com/png/solid-sharp/16/rectangle.png · https://gentleface.com/png/solid-sharp/32/rectangle.png · https://gentleface.com/png/solid-sharp/48/rectangle.png

The SVG of every style: https://gentleface.com/icons/rectangle.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="M14.86 11.736C14.758 11.993 14.609 12.219 14.414 12.414C14.219 12.609 13.993 12.758 13.736 12.86C13.5 12.953 13.254 13 13 13L3 13C2.746 13 2.5 12.953 2.264 12.86C2.007 12.758 1.781 12.609 1.586 12.414C1.391 12.219 1.242 11.993 1.14 11.736C1.047 11.5 1 11.254 1 11L1 5C1 4.746 1.047 4.5 1.14 4.264C1.242 4.007 1.391 3.781 1.586 3.586C1.781 3.391 2.007 3.242 2.264 3.14C2.5 3.047 2.746 3 3 3L13 3C13.254 3 13.5 3.047 13.736 3.14C13.993 3.242 14.219 3.391 14.414 3.586C14.609 3.781 14.758 4.007 14.86 4.264C14.953 4.5 15 4.746 15 5L15 11C15 11.254 14.953 11.5 14.86 11.736ZM2.293 11.707C2.488 11.902 2.724 12 3 12L13 12C13.276 12 13.512 11.902 13.707 11.707C13.902 11.512 14 11.276 14 11L14 5C14 4.724 13.902 4.488 13.707 4.293C13.512 4.098 13.276 4 13 4L3 4C2.724 4 2.488 4.098 2.293 4.293C2.098 4.488 2 4.724 2 5L2 11C2 11.276 2.098 11.512 2.293 11.707Z"/></svg>
```

### React

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

export function RectangleIcon(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="M14.86 11.736C14.758 11.993 14.609 12.219 14.414 12.414C14.219 12.609 13.993 12.758 13.736 12.86C13.5 12.953 13.254 13 13 13L3 13C2.746 13 2.5 12.953 2.264 12.86C2.007 12.758 1.781 12.609 1.586 12.414C1.391 12.219 1.242 11.993 1.14 11.736C1.047 11.5 1 11.254 1 11L1 5C1 4.746 1.047 4.5 1.14 4.264C1.242 4.007 1.391 3.781 1.586 3.586C1.781 3.391 2.007 3.242 2.264 3.14C2.5 3.047 2.746 3 3 3L13 3C13.254 3 13.5 3.047 13.736 3.14C13.993 3.242 14.219 3.391 14.414 3.586C14.609 3.781 14.758 4.007 14.86 4.264C14.953 4.5 15 4.746 15 5L15 11C15 11.254 14.953 11.5 14.86 11.736ZM2.293 11.707C2.488 11.902 2.724 12 3 12L13 12C13.276 12 13.512 11.902 13.707 11.707C13.902 11.512 14 11.276 14 11L14 5C14 4.724 13.902 4.488 13.707 4.293C13.512 4.098 13.276 4 13 4L3 4C2.724 4 2.488 4.098 2.293 4.293C2.098 4.488 2 4.724 2 5L2 11C2 11.276 2.098 11.512 2.293 11.707Z" />
    </svg>
  );
}
```

### Vue

```vue
<!-- Gentleface "rectangle" (line-round), MIT. https://gentleface.com/icons/rectangle -->
<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="M14.86 11.736C14.758 11.993 14.609 12.219 14.414 12.414C14.219 12.609 13.993 12.758 13.736 12.86C13.5 12.953 13.254 13 13 13L3 13C2.746 13 2.5 12.953 2.264 12.86C2.007 12.758 1.781 12.609 1.586 12.414C1.391 12.219 1.242 11.993 1.14 11.736C1.047 11.5 1 11.254 1 11L1 5C1 4.746 1.047 4.5 1.14 4.264C1.242 4.007 1.391 3.781 1.586 3.586C1.781 3.391 2.007 3.242 2.264 3.14C2.5 3.047 2.746 3 3 3L13 3C13.254 3 13.5 3.047 13.736 3.14C13.993 3.242 14.219 3.391 14.414 3.586C14.609 3.781 14.758 4.007 14.86 4.264C14.953 4.5 15 4.746 15 5L15 11C15 11.254 14.953 11.5 14.86 11.736ZM2.293 11.707C2.488 11.902 2.724 12 3 12L13 12C13.276 12 13.512 11.902 13.707 11.707C13.902 11.512 14 11.276 14 11L14 5C14 4.724 13.902 4.488 13.707 4.293C13.512 4.098 13.276 4 13 4L3 4C2.724 4 2.488 4.098 2.293 4.293C2.098 4.488 2 4.724 2 5L2 11C2 11.276 2.098 11.512 2.293 11.707Z" />
  </svg>
</template>
```

### Svelte

```svelte
<!-- Gentleface "rectangle" (line-round), MIT. https://gentleface.com/icons/rectangle -->
<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="M14.86 11.736C14.758 11.993 14.609 12.219 14.414 12.414C14.219 12.609 13.993 12.758 13.736 12.86C13.5 12.953 13.254 13 13 13L3 13C2.746 13 2.5 12.953 2.264 12.86C2.007 12.758 1.781 12.609 1.586 12.414C1.391 12.219 1.242 11.993 1.14 11.736C1.047 11.5 1 11.254 1 11L1 5C1 4.746 1.047 4.5 1.14 4.264C1.242 4.007 1.391 3.781 1.586 3.586C1.781 3.391 2.007 3.242 2.264 3.14C2.5 3.047 2.746 3 3 3L13 3C13.254 3 13.5 3.047 13.736 3.14C13.993 3.242 14.219 3.391 14.414 3.586C14.609 3.781 14.758 4.007 14.86 4.264C14.953 4.5 15 4.746 15 5L15 11C15 11.254 14.953 11.5 14.86 11.736ZM2.293 11.707C2.488 11.902 2.724 12 3 12L13 12C13.276 12 13.512 11.902 13.707 11.707C13.902 11.512 14 11.276 14 11L14 5C14 4.724 13.902 4.488 13.707 4.293C13.512 4.098 13.276 4 13 4L3 4C2.724 4 2.488 4.098 2.293 4.293C2.098 4.488 2 4.724 2 5L2 11C2 11.276 2.098 11.512 2.293 11.707Z" />
</svg>
```

### HTML img

```html
<!-- Gentleface "rectangle" (line-round), MIT. https://gentleface.com/icons/rectangle. 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/rectangle.svg" width="16" height="16" alt="">
```

### CSS

```css
/* Gentleface "rectangle" (line-round), MIT. https://gentleface.com/icons/rectangle. Takes the text color. */
.icon-rectangle {
  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='M14.86 11.736C14.758 11.993 14.609 12.219 14.414 12.414C14.219 12.609 13.993 12.758 13.736 12.86C13.5 12.953 13.254 13 13 13L3 13C2.746 13 2.5 12.953 2.264 12.86C2.007 12.758 1.781 12.609 1.586 12.414C1.391 12.219 1.242 11.993 1.14 11.736C1.047 11.5 1 11.254 1 11L1 5C1 4.746 1.047 4.5 1.14 4.264C1.242 4.007 1.391 3.781 1.586 3.586C1.781 3.391 2.007 3.242 2.264 3.14C2.5 3.047 2.746 3 3 3L13 3C13.254 3 13.5 3.047 13.736 3.14C13.993 3.242 14.219 3.391 14.414 3.586C14.609 3.781 14.758 4.007 14.86 4.264C14.953 4.5 15 4.746 15 5L15 11C15 11.254 14.953 11.5 14.86 11.736ZM2.293 11.707C2.488 11.902 2.724 12 3 12L13 12C13.276 12 13.512 11.902 13.707 11.707C13.902 11.512 14 11.276 14 11L14 5C14 4.724 13.902 4.488 13.707 4.293C13.512 4.098 13.276 4 13 4L3 4C2.724 4 2.488 4.098 2.293 4.293C2.098 4.488 2 4.724 2 5L2 11C2 11.276 2.098 11.512 2.293 11.707Z'/%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='M14.86 11.736C14.758 11.993 14.609 12.219 14.414 12.414C14.219 12.609 13.993 12.758 13.736 12.86C13.5 12.953 13.254 13 13 13L3 13C2.746 13 2.5 12.953 2.264 12.86C2.007 12.758 1.781 12.609 1.586 12.414C1.391 12.219 1.242 11.993 1.14 11.736C1.047 11.5 1 11.254 1 11L1 5C1 4.746 1.047 4.5 1.14 4.264C1.242 4.007 1.391 3.781 1.586 3.586C1.781 3.391 2.007 3.242 2.264 3.14C2.5 3.047 2.746 3 3 3L13 3C13.254 3 13.5 3.047 13.736 3.14C13.993 3.242 14.219 3.391 14.414 3.586C14.609 3.781 14.758 4.007 14.86 4.264C14.953 4.5 15 4.746 15 5L15 11C15 11.254 14.953 11.5 14.86 11.736ZM2.293 11.707C2.488 11.902 2.724 12 3 12L13 12C13.276 12 13.512 11.902 13.707 11.707C13.902 11.512 14 11.276 14 11L14 5C14 4.724 13.902 4.488 13.707 4.293C13.512 4.098 13.276 4 13 4L3 4C2.724 4 2.488 4.098 2.293 4.293C2.098 4.488 2 4.724 2 5L2 11C2 11.276 2.098 11.512 2.293 11.707Z'/%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='M14.86 11.736C14.758 11.993 14.609 12.219 14.414 12.414C14.219 12.609 13.993 12.758 13.736 12.86C13.5 12.953 13.254 13 13 13L3 13C2.746 13 2.5 12.953 2.264 12.86C2.007 12.758 1.781 12.609 1.586 12.414C1.391 12.219 1.242 11.993 1.14 11.736C1.047 11.5 1 11.254 1 11L1 5C1 4.746 1.047 4.5 1.14 4.264C1.242 4.007 1.391 3.781 1.586 3.586C1.781 3.391 2.007 3.242 2.264 3.14C2.5 3.047 2.746 3 3 3L13 3C13.254 3 13.5 3.047 13.736 3.14C13.993 3.242 14.219 3.391 14.414 3.586C14.609 3.781 14.758 4.007 14.86 4.264C14.953 4.5 15 4.746 15 5L15 11C15 11.254 14.953 11.5 14.86 11.736ZM2.293 11.707C2.488 11.902 2.724 12 3 12L13 12C13.276 12 13.512 11.902 13.707 11.707C13.902 11.512 14 11.276 14 11L14 5C14 4.724 13.902 4.488 13.707 4.293C13.512 4.098 13.276 4 13 4L3 4C2.724 4 2.488 4.098 2.293 4.293C2.098 4.488 2 4.724 2 5L2 11C2 11.276 2.098 11.512 2.293 11.707Z'/%3E%3C/svg%3E
```

### Sprite

```html
<!-- Gentleface "rectangle" (line-round), MIT. https://gentleface.com/icons/rectangle
     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#rectangle"/></svg>
```

### SwiftUI

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

struct RectangleIcon: Shape {
    func path(in rect: CGRect) -> Path {
        var p = Path()
        p.move(to: CGPoint(x: 14.86, y: 11.736))
        p.addCurve(to: CGPoint(x: 14.414, y: 12.414), control1: CGPoint(x: 14.758, y: 11.993), control2: CGPoint(x: 14.609, y: 12.219))
        p.addCurve(to: CGPoint(x: 13.736, y: 12.86), control1: CGPoint(x: 14.219, y: 12.609), control2: CGPoint(x: 13.993, y: 12.758))
        p.addCurve(to: CGPoint(x: 13, y: 13), control1: CGPoint(x: 13.5, y: 12.953), control2: CGPoint(x: 13.254, y: 13))
        p.addLine(to: CGPoint(x: 3, y: 13))
        p.addCurve(to: CGPoint(x: 2.264, y: 12.86), control1: CGPoint(x: 2.746, y: 13), control2: CGPoint(x: 2.5, y: 12.953))
        p.addCurve(to: CGPoint(x: 1.586, y: 12.414), control1: CGPoint(x: 2.007, y: 12.758), control2: CGPoint(x: 1.781, y: 12.609))
        p.addCurve(to: CGPoint(x: 1.14, y: 11.736), control1: CGPoint(x: 1.391, y: 12.219), control2: CGPoint(x: 1.242, y: 11.993))
        p.addCurve(to: CGPoint(x: 1, y: 11), control1: CGPoint(x: 1.047, y: 11.5), control2: CGPoint(x: 1, y: 11.254))
        p.addLine(to: CGPoint(x: 1, y: 5))
        p.addCurve(to: CGPoint(x: 1.14, y: 4.264), control1: CGPoint(x: 1, y: 4.746), control2: CGPoint(x: 1.047, y: 4.5))
        p.addCurve(to: CGPoint(x: 1.586, y: 3.586), control1: CGPoint(x: 1.242, y: 4.007), control2: CGPoint(x: 1.391, y: 3.781))
        p.addCurve(to: CGPoint(x: 2.264, y: 3.14), control1: CGPoint(x: 1.781, y: 3.391), control2: CGPoint(x: 2.007, y: 3.242))
        p.addCurve(to: CGPoint(x: 3, y: 3), control1: CGPoint(x: 2.5, y: 3.047), control2: CGPoint(x: 2.746, y: 3))
        p.addLine(to: CGPoint(x: 13, y: 3))
        p.addCurve(to: CGPoint(x: 13.736, y: 3.14), control1: CGPoint(x: 13.254, y: 3), control2: CGPoint(x: 13.5, y: 3.047))
        p.addCurve(to: CGPoint(x: 14.414, y: 3.586), control1: CGPoint(x: 13.993, y: 3.242), control2: CGPoint(x: 14.219, y: 3.391))
        p.addCurve(to: CGPoint(x: 14.86, y: 4.264), control1: CGPoint(x: 14.609, y: 3.781), control2: CGPoint(x: 14.758, y: 4.007))
        p.addCurve(to: CGPoint(x: 15, y: 5), control1: CGPoint(x: 14.953, y: 4.5), control2: CGPoint(x: 15, y: 4.746))
        p.addLine(to: CGPoint(x: 15, y: 11))
        p.addCurve(to: CGPoint(x: 14.86, y: 11.736), control1: CGPoint(x: 15, y: 11.254), control2: CGPoint(x: 14.953, y: 11.5))
        p.closeSubpath()
        p.move(to: CGPoint(x: 2.293, y: 11.707))
        p.addCurve(to: CGPoint(x: 3, y: 12), control1: CGPoint(x: 2.488, y: 11.902), control2: CGPoint(x: 2.724, y: 12))
        p.addLine(to: CGPoint(x: 13, y: 12))
        p.addCurve(to: CGPoint(x: 13.707, y: 11.707), control1: CGPoint(x: 13.276, y: 12), control2: CGPoint(x: 13.512, y: 11.902))
        p.addCurve(to: CGPoint(x: 14, y: 11), control1: CGPoint(x: 13.902, y: 11.512), control2: CGPoint(x: 14, y: 11.276))
        p.addLine(to: CGPoint(x: 14, y: 5))
        p.addCurve(to: CGPoint(x: 13.707, y: 4.293), control1: CGPoint(x: 14, y: 4.724), control2: CGPoint(x: 13.902, y: 4.488))
        p.addCurve(to: CGPoint(x: 13, y: 4), control1: CGPoint(x: 13.512, y: 4.098), control2: CGPoint(x: 13.276, y: 4))
        p.addLine(to: CGPoint(x: 3, y: 4))
        p.addCurve(to: CGPoint(x: 2.293, y: 4.293), control1: CGPoint(x: 2.724, y: 4), control2: CGPoint(x: 2.488, y: 4.098))
        p.addCurve(to: CGPoint(x: 2, y: 5), control1: CGPoint(x: 2.098, y: 4.488), control2: CGPoint(x: 2, y: 4.724))
        p.addLine(to: CGPoint(x: 2, y: 11))
        p.addCurve(to: CGPoint(x: 2.293, y: 11.707), control1: CGPoint(x: 2, y: 11.276), control2: CGPoint(x: 2.098, y: 11.512))
        p.closeSubpath()
        return p.applying(CGAffineTransform(scaleX: rect.width / 16, y: rect.height / 16))
    }
}

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

### Compose

```kotlin
// Gentleface "rectangle" (line-round), MIT. https://gentleface.com/icons/rectangle
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 RectangleIcon: ImageVector by lazy {
    ImageVector.Builder(
        name = "rectangle", defaultWidth = 16.dp, defaultHeight = 16.dp,
        viewportWidth = 16f, viewportHeight = 16f,
    ).addPath(
        pathData = addPathNodes("M14.86 11.736C14.758 11.993 14.609 12.219 14.414 12.414C14.219 12.609 13.993 12.758 13.736 12.86C13.5 12.953 13.254 13 13 13L3 13C2.746 13 2.5 12.953 2.264 12.86C2.007 12.758 1.781 12.609 1.586 12.414C1.391 12.219 1.242 11.993 1.14 11.736C1.047 11.5 1 11.254 1 11L1 5C1 4.746 1.047 4.5 1.14 4.264C1.242 4.007 1.391 3.781 1.586 3.586C1.781 3.391 2.007 3.242 2.264 3.14C2.5 3.047 2.746 3 3 3L13 3C13.254 3 13.5 3.047 13.736 3.14C13.993 3.242 14.219 3.391 14.414 3.586C14.609 3.781 14.758 4.007 14.86 4.264C14.953 4.5 15 4.746 15 5L15 11C15 11.254 14.953 11.5 14.86 11.736ZM2.293 11.707C2.488 11.902 2.724 12 3 12L13 12C13.276 12 13.512 11.902 13.707 11.707C13.902 11.512 14 11.276 14 11L14 5C14 4.724 13.902 4.488 13.707 4.293C13.512 4.098 13.276 4 13 4L3 4C2.724 4 2.488 4.098 2.293 4.293C2.098 4.488 2 4.724 2 5L2 11C2 11.276 2.098 11.512 2.293 11.707Z"),
        fill = SolidColor(Color.Black),
    ).build()
}

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

### Android XML

```xml
<!-- res/drawable/ic_rectangle.xml · Gentleface "rectangle" (line-round), MIT. https://gentleface.com/icons/rectangle -->
<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="M14.86 11.736C14.758 11.993 14.609 12.219 14.414 12.414C14.219 12.609 13.993 12.758 13.736 12.86C13.5 12.953 13.254 13 13 13L3 13C2.746 13 2.5 12.953 2.264 12.86C2.007 12.758 1.781 12.609 1.586 12.414C1.391 12.219 1.242 11.993 1.14 11.736C1.047 11.5 1 11.254 1 11L1 5C1 4.746 1.047 4.5 1.14 4.264C1.242 4.007 1.391 3.781 1.586 3.586C1.781 3.391 2.007 3.242 2.264 3.14C2.5 3.047 2.746 3 3 3L13 3C13.254 3 13.5 3.047 13.736 3.14C13.993 3.242 14.219 3.391 14.414 3.586C14.609 3.781 14.758 4.007 14.86 4.264C14.953 4.5 15 4.746 15 5L15 11C15 11.254 14.953 11.5 14.86 11.736ZM2.293 11.707C2.488 11.902 2.724 12 3 12L13 12C13.276 12 13.512 11.902 13.707 11.707C13.902 11.512 14 11.276 14 11L14 5C14 4.724 13.902 4.488 13.707 4.293C13.512 4.098 13.276 4 13 4L3 4C2.724 4 2.488 4.098 2.293 4.293C2.098 4.488 2 4.724 2 5L2 11C2 11.276 2.098 11.512 2.293 11.707Z"/>
</vector>
```

### Flutter

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

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

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

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

  @override
  void paint(Canvas canvas, Size size) {
    canvas.scale(size.width / 16, size.height / 16);
    final p = Path()
      ..moveTo(14.86, 11.736)
      ..cubicTo(14.758, 11.993, 14.609, 12.219, 14.414, 12.414)
      ..cubicTo(14.219, 12.609, 13.993, 12.758, 13.736, 12.86)
      ..cubicTo(13.5, 12.953, 13.254, 13, 13, 13)
      ..lineTo(3, 13)
      ..cubicTo(2.746, 13, 2.5, 12.953, 2.264, 12.86)
      ..cubicTo(2.007, 12.758, 1.781, 12.609, 1.586, 12.414)
      ..cubicTo(1.391, 12.219, 1.242, 11.993, 1.14, 11.736)
      ..cubicTo(1.047, 11.5, 1, 11.254, 1, 11)
      ..lineTo(1, 5)
      ..cubicTo(1, 4.746, 1.047, 4.5, 1.14, 4.264)
      ..cubicTo(1.242, 4.007, 1.391, 3.781, 1.586, 3.586)
      ..cubicTo(1.781, 3.391, 2.007, 3.242, 2.264, 3.14)
      ..cubicTo(2.5, 3.047, 2.746, 3, 3, 3)
      ..lineTo(13, 3)
      ..cubicTo(13.254, 3, 13.5, 3.047, 13.736, 3.14)
      ..cubicTo(13.993, 3.242, 14.219, 3.391, 14.414, 3.586)
      ..cubicTo(14.609, 3.781, 14.758, 4.007, 14.86, 4.264)
      ..cubicTo(14.953, 4.5, 15, 4.746, 15, 5)
      ..lineTo(15, 11)
      ..cubicTo(15, 11.254, 14.953, 11.5, 14.86, 11.736)
      ..close()
      ..moveTo(2.293, 11.707)
      ..cubicTo(2.488, 11.902, 2.724, 12, 3, 12)
      ..lineTo(13, 12)
      ..cubicTo(13.276, 12, 13.512, 11.902, 13.707, 11.707)
      ..cubicTo(13.902, 11.512, 14, 11.276, 14, 11)
      ..lineTo(14, 5)
      ..cubicTo(14, 4.724, 13.902, 4.488, 13.707, 4.293)
      ..cubicTo(13.512, 4.098, 13.276, 4, 13, 4)
      ..lineTo(3, 4)
      ..cubicTo(2.724, 4, 2.488, 4.098, 2.293, 4.293)
      ..cubicTo(2.098, 4.488, 2, 4.724, 2, 5)
      ..lineTo(2, 11)
      ..cubicTo(2, 11.276, 2.098, 11.512, 2.293, 11.707)
      ..close();
    canvas.drawPath(p, Paint()..color = color);
  }

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