# nav.entry

The name of an entry in an index or table, linking to its page: an intent in the vocabulary list

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.entry" href="/somewhere">Entry</Action>
```

## Choosing between neighbours

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

| If it is for… | Use |
|---|---|
| The name of an entry in an index or table, linking to its page: an intent in the vocabulary list | `nav.entry` (this page) |
| A link inside a sentence | [`action.navigate`](https://www.prongs.dev/docs/intents/action/navigate.md) |
| The title of an item that opens as a whole | [`nav.item`](https://www.prongs.dev/docs/intents/nav/item.md) |
| A name in a table or list row (rather than [`nav.item`](https://www.prongs.dev/docs/intents/nav/item.md)) | `nav.entry` (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 nav.entry 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
  ```

- `nav.entry` (this page) — The name of an entry in an index or table, linking to its page: an intent in the vocabulary list

  ```
  no-underline
  ```

Final classes

```
text-foreground 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 no-underline
```

Definition

```ts
'nav.entry': {
  kind: 'semantic',
  description: 'The name of an entry in an index or table, linking to its page: an intent in the vocabulary list',
  refs: ['control.link'],
  binding: { classes: 'no-underline' },
  notFor: [
    { context: 'a link inside a sentence', instead: 'action.navigate' },
    {
      context: 'the title of an item that opens as a whole',
      instead: 'nav.item',
    },
  ],
},
```
