# action.navigate

Goes to another page or place from inside a sentence: an inline link

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="action.navigate" href="/somewhere">Visit</Action>
```

Code that says `visit`, `go`, `home` 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 |
|---|---|
| Goes to another page or place from inside a sentence: an inline link | `action.navigate` (this page) |
| A link on its own line to more, like Learn more or See all | [`action.more`](https://www.prongs.dev/docs/intents/action/more.md) |
| Secondary links to other pages (rather than [`action.start`](https://www.prongs.dev/docs/intents/action/start.md)) | `action.navigate` (this page) |
| A link inside text (rather than [`action.guide`](https://www.prongs.dev/docs/intents/action/guide.md)) | `action.navigate` (this page) |
| Going to the sign-in page (rather than [`action.signout`](https://www.prongs.dev/docs/intents/action/signout.md)) | `action.navigate` (this page) |
| Going to another page of this site (rather than [`action.open`](https://www.prongs.dev/docs/intents/action/open.md)) | `action.navigate` (this page) |
| A link inside a sentence (rather than [`action.more`](https://www.prongs.dev/docs/intents/action/more.md)) | `action.navigate` (this page) |
| A link inside a sentence (rather than [`nav.entry`](https://www.prongs.dev/docs/intents/nav/entry.md)) | `action.navigate` (this page) |

## 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: [`control.link`](https://www.prongs.dev/docs/intents/ui.md#control-link)

## 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 action.navigate 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.

- [`control.link`](https://www.prongs.dev/docs/intents/ui.md#control-link) — Inline text link

  ```
  text-foreground underline decoration-dotted
  decoration-foreground/50 underline-offset-4
  hover:decoration-foreground focus-visible:decoration-solid
  focus-visible:decoration-2 focus-visible:outline-none
  aria-disabled:pointer-events-none aria-disabled:opacity-50
  ```

- `action.navigate` (this page) — Goes to another page or place from inside a sentence: an inline link

Final classes

```
text-foreground underline decoration-dotted
decoration-foreground/50 underline-offset-4
hover:decoration-foreground focus-visible:decoration-solid
focus-visible:decoration-2 focus-visible:outline-none
aria-disabled:pointer-events-none aria-disabled:opacity-50
```

Definition

```ts
'action.navigate': {
  kind: 'semantic',
  description: 'Goes to another page or place from inside a sentence: an inline link',
  refs: ['control.link'],
  keywords: ['visit', 'go', 'home'],
  notFor: [
    {
      context: 'a link on its own line to more, like Learn more or See all',
      instead: 'action.more',
    },
  ],
},
```
