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

# Rulers & Guides

> Use rulers, guides, grids, and snapping to align and organize content on your artboards.

export const YouTube = ({id, timestamp}) => {
  const videoSrc = timestamp ? `https://www.youtube.com/embed/${id}?start=${timestamp}` : `https://www.youtube.com/embed/${id}`;
  return <iframe width="100%" height="400" src={videoSrc} title="YouTube video player" frameBorder="0" allow="accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture; web-share" referrerPolicy="strict-origin-when-cross-origin" allowFullScreen />;
};

export const VideoEmbed = ({src}) => {
  return <div style={{
    height: "100%"
  }}>
      <video src={src} autoPlay loop muted playsInline style={{
    width: "100%",
    height: "100%",
    borderRadius: 0,
    margin: 0,
    display: "block",
    objectFit: "cover",
    backgroundColor: "transparent"
  }} />
    </div>;
};

Use ruler guides to place individual horizontal or vertical guides, or use guides to create structured rows, columns, and grids. Guides are specific to the artboard they're created on and are only visible in the editor—they aren't included in the exported `.riv` file.

* **Show or hide:** Click the **eye** icon next to a guide.
* **Remove:** Click the **-** icon to remove the guide.

<img src="https://mintcdn.com/rive/z42UjWDaBRxsdLkI/images/editor/design/rulers-and-guides.png?fit=max&auto=format&n=z42UjWDaBRxsdLkI&q=85&s=246dbf713c84e438427fab2ce2d220ad" alt="Rive interface showing grids, guides, and ruler guides" width="1199" height="676" data-path="images/editor/design/rulers-and-guides.png" />

## Toggling Ruler and Guide Visibility

To show or hide rulers and guides, press **;** or select **View Menu > Rulers & Guides**.

## Ruler Guides

Ruler guides are horizontal or vertical guides that you can position anywhere on an artboard. Ruler guides belong to the artboard they're created on, so each artboard can have its own set of guides.

<YouTube id="uePyLZfrB7E" />

### Creating a Ruler Guide

With rulers visible, click and drag from a ruler into the viewport to create a ruler guide.

<VideoEmbed src="https://static.rive.app/video/create-ruler-guides.mp4" />

### Managing Ruler Guides

* **Move:** Click and drag a ruler guide.
* **Duplicate:** Hold **Alt/Option** while clicking and dragging a ruler guide.
* **Delete:** Select a ruler guide and press **Delete**.
* **Lock:** Press **Option + ;** or select **View Options > Lock Guides** to prevent ruler guides from being moved.

<VideoEmbed src="https://static.rive.app/video/manage-ruler-guides.mp4" />

## Guides

Guides let you add rows, columns, or a grid to an artboard. Like ruler guides, they belong to the artboard they're created on.

### Creating a Guide

With an artboard selected, go to the **Guides** panel in the Inspector and click the **+** button. Choose the type of guide you want to add:

* **Rows**
* **Columns**
* **Grid**

<img src="https://mintcdn.com/rive/z42UjWDaBRxsdLkI/images/editor/design/guide-types.png?fit=max&auto=format&n=z42UjWDaBRxsdLkI&q=85&s=72f0b61796216cb9190c4e5df608ee73" alt="Guide types - rows, columns, grid" width="2183" height="811" data-path="images/editor/design/guide-types.png" />

### Guide Options

The available options depend on the guide type.

**Grid**

* **Color** - Set the color of the grid.
* **Size** - Set the size of the grid.

**Rows and Columns**

* **Color** - Set the color of the guides.
* **Count** - Set the number of rows or columns.
* **Width** - Set the width of each row or column.
* **Type** - Control how the rows or columns are distributed within the artboard: **Left**, **Right**, **Center**, or **Stretch**.

<VideoEmbed src="https://static.rive.app/video/guide-alignment-type.mp4" />

### Managing Guides

You can add multiple guides to the same artboard, allowing you to combine grids, rows, and columns.

<img src="https://mintcdn.com/rive/z42UjWDaBRxsdLkI/images/editor/design/multiple-guides.png?fit=max&auto=format&n=z42UjWDaBRxsdLkI&q=85&s=f0c3255f9951b5b00deb71cefef24742" alt="Multiple guides applied to the same artboard" width="1118" height="392" data-path="images/editor/design/multiple-guides.png" />

* **Show or hide:** Click the **eye** icon next to a guide.
* **Remove:** Click the **-** icon to remove the guide.

### Guide Components

You can convert the guides on an artboard to a component, allowing you to reuse the same guide configuration across multiple artboards.

In the **Guides** panel of the Inspector, click the **Component** icon. The guides on the artboard are converted to a component and added to the Assets panel.

To edit the guide component, select it in the **Assets** panel. Changes to the component are reflected on every artboard where it's used.

<VideoEmbed src="https://static.rive.app/video/convert-guides-to-component.mp4" />

#### Applying a Guide Component

To apply a guide component to an artboard, drag it from the **Assets** panel onto the artboard.

<VideoEmbed src="https://static.rive.app/video/drag-guide-to-artboard.mp4" />

To apply it to every artboard in the file, right-click the component in the **Assets** panel and select **Apply to All Artboards**.

<VideoEmbed src="https://static.rive.app/video/apply-guide-component-to-artboards.mp4" />

#### Managing a Guide Component

When an artboard uses a guide component, you can manage it from the **Guides** panel in the Inspector.

* **Show or hide:** Click the **eye** icon to toggle the component's visibility.
* **Remove:** Click the **-** icon to remove the component from the current artboard.
* **Detach:** Detach the guides from the component to edit them independently on the current artboard.

## Snapping

Enable snapping to make objects snap to guides and ruler guides as you position them.

Press **Option + ;** or open **View Options** and enable **Snapping**.

<VideoEmbed src="https://static.rive.app/video/snapping.mp4" />
