# nav.sequel

The previous or next page at the foot of a guide read in order, with an arrow pointing its way. Put the icon on the side it points to

Component: [`<Action>`](https://www.prongs.dev/docs/components/action.md) · Renders: `<a>` · Profile: [UI](https://www.prongs.dev/docs/intents/ui.md)

## Example

```tsx
<Action intent="nav.sequel" href="/somewhere">Sequence</Action>
```

Code that says `sequence`, `guide` points here. `prongs check` warns when an element with this intent has a handler or label that points somewhere else.

## Choosing between neighbours

Find the row that describes your element, and use the intent on the right.

| If it is for… | Use |
|---|---|
| The previous or next page at the foot of a guide read in order, with an arrow pointing its way. Put the icon on the side it points to | `nav.sequel` (this page) |
| Page numbers below a long list | [`nav.paging`](https://www.prongs.dev/docs/intents/nav/paging.md) |
| Steps in a multi-step flow | [`nav.step`](https://www.prongs.dev/docs/intents/nav/step.md) |

## Connections

Declared in the registry, both directions. Where an intent is used in your own code is something check and the gallery see; this site has no app code.

- Built from: [`tone.default`](https://www.prongs.dev/docs/intents/ui.md#tone-default)

## For registry authors

**Starter intents.** These are the intents `prongs add` puts in your registry, shown in this site’s theme. Yours are your own `registry.ts`: rename, restyle and add to them, and see them with `prongs add gallery`.

What this intent is built from and its entry in `components/prongs/registry.ts`. You only need this to change how it looks or to add an intent like it.

How nav.sequel resolves, and its definition

Each layer adds to the one before it; a later class wins over an earlier one that sets the same thing.

- [`tone.default`](https://www.prongs.dev/docs/intents/ui.md#tone-default) — Main text colour

  ```
  text-foreground
  ```

- `nav.sequel` (this page) — The previous or next page at the foot of a guide read in order, with an arrow pointing its way. Put the icon on the side it points to

  ```
  inline-flex w-fit items-center gap-1.5 whitespace-nowrap
  underline-offset-4 hover:underline focus-visible:underline
  focus-visible:outline-none
  ```

Final classes

```
text-foreground inline-flex w-fit items-center gap-1.5
whitespace-nowrap underline-offset-4 hover:underline
focus-visible:underline focus-visible:outline-none
```

Definition

```ts
'nav.sequel': {
  kind: 'semantic',
  description: 'The previous or next page at the foot of a guide read in order, with an arrow pointing its way. Put the icon on the side it points to',
  refs: ['tone.default'],
  keywords: ['sequence', 'guide'],
  binding: {
    classes: 'inline-flex w-fit items-center gap-1.5 whitespace-nowrap underline-offset-4 hover:underline focus-visible:underline focus-visible:outline-none',
  },
  notFor: [
    { context: 'page numbers below a long list', instead: 'nav.paging' },
    { context: 'steps in a multi-step flow', instead: 'nav.step' },
  ],
},
```
