> ## Documentation Index
> Fetch the complete documentation index at: https://docs.yarn.so/llms.txt
> Use this file to discover all available pages before exploring further.

# Shapes, lines and icons

> Draw shapes, arrows and paths, and add icons to an overlay.

Shapes, arrows and icons point viewers at what matters and give your text something to sit on.

**Ask the Agent:** "Add an arrow pointing at the Save button." · "Put a rounded blue box behind the headline."

## Do it yourself

### Add a shape or icon

Select an overlay, click **Insert** and choose **Rectangle**, **Ellipse**, **Polygon** or **Icon**. Or press R and drag on the canvas to draw a rectangle.

### Draw lines and paths

Choose **Line**, **Arrow** or **Pen** from **Insert**, or press L for a line or P for the pen while an overlay is selected. For a line or arrow, click where it starts, then click where it ends.

<video autoPlay muted loop playsInline src="https://mintcdn.com/yarn/5d87hh-DSpIitaVH/images/shape-draw-arrow.mp4?fit=max&auto=format&n=5d87hh-DSpIitaVH&q=85&s=35f341b12c906621804cfacbf8c758a2" aria-label="Choosing Arrow from the Insert menu, clicking twice on the canvas to draw an arrow pointing at a button, then making it thicker" />

With the pen:

1. Click to add points, or click and drag to make a curve.
2. Click the first point to close the shape, or press Enter or Escape to finish an open path.
3. Press Escape again to put the pen away.

Double-click a shape or path to edit its points.

### Style it

Select a shape or line to see its controls in the top bar.

| Control | What it does |
| - | - |
| **Number of Sides** | Sets how many sides a polygon has. |
| **Corner Radius** | Rounds the corners of a rectangle or polygon. |
| **Border Width** | Adds an outline to a shape. |
| **Stroke Width** | Sets how thick a line or path is. |
| **Add Fill** | Fills a path. |
| **Opacity** | Makes it see-through. |

For a dashed line, click **Show Detail Panel**, choose **Dashed**, then set **Dash** and **Gap**. To put an arrowhead on any line or path, click **Arrow** in the same panel.

For an icon, click the icon in the top bar and type in **Search icons...** to swap it. **Icon Size** sets how big it is.

**Related:** [Overlays and templates](https://docs.yarn.so/overlays/overview.md) · [Colors and effects](https://docs.yarn.so/overlays/styling.md) · [Layout and alignment](https://docs.yarn.so/overlays/layout.md)


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.