---
title: Play and inspect
description: Present a section with Play and share the link, and inspect the type, styles and layout of anything in a frame.
---

Play presents a section one step at a time, so you can show it or have someone test it. The inspect tools show how anything in a frame is built.

## Play a section

Start Play in one of these ways:

- Choose **Play** above a section
- Choose **Play from here** in a frame's menu, or press ⌥ ⌘ Enter, to start at that step
- Choose **Play** at the top right of the canvas, to present the selected frame's section, or else the first section

While you play:

- Press ← and → to move between steps. Each view and spec is a step, and documents are skipped.
- Use **Size** to show each step as designed, or every step at desktop, tablet or mobile width
- Press **C** to comment on anything
- Press Escape to go back to the canvas, at the frame you were on

On a built Dex, **Copy link** copies a link to the step you're on.

## Link views together

A view can move through its section with `useFlow()` from `@studio/kit/use-flow`, such as `<Button onClick={flow.next}>`. Outside Play, `flow.next` and `flow.back` do nothing.

A view can also link to another view of its file with `<a href="/files/<slug>/views/<view>">`. The frame shows that view, and Play moves to the step that shows it. Links to other sites open in a new tab. Other links go nowhere, because each view renders apart from Dex's interface.

## Inspect a frame

Choose a tool from the toolbar, or press its key:

- **Inspect styles (I)**: hover any element for its font, size, line height, weight, tracking and colour. Click to pin it. A pinned element has a bar to show it hovered, pressed or focused, and the state stays while you comment on it.
- **X-ray (X)**: outlines every element
- **Grid (Shift G)**: shows the column grid. Set it up for each device in the **Grid** panel. Frames pasted from Figma bring their own layout grids.

Numbers are CSS pixels at any zoom. Press Escape to go back to Select.
