nav.page
A link to a page in site or app navigation, including Sign in. Pass current on the page you are on
Read https://www.prongs.dev/docs/intents/nav/page.md and tell me whether nav.page fits what I am building.Navigation intents
Example
Connections
Choosing between neighbours
If it is
Use
A link to a page in site or app navigation, including Sign in. Pass current on the page you are on
nav.pageSwitching between views of the same content
nav.viewOther pages in the site navigation
rather thannav.homenav.pageA link in site navigation
rather thannav.itemnav.pagePages in site navigation
rather thannav.stepnav.pagePages in site navigation
rather thannav.pagingnav.pagePages in site or app navigation
rather thannav.trailnav.page
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.page 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.menuPlain navigation link; strong while current
text-sm font-medium text-surface-muted hover:text-foreground aria-[current]:text-foreground
nav.pageA link to a page in site or app navigation, including Sign in. Pass current on the page you are on
text-sm font-medium text-surface-muted hover:text-foreground aria-[current]:text-foreground
'nav.page': {
kind: 'semantic',
description: 'A link to a page in site or app navigation, including Sign in. Pass current on the page you are on',
refs: ['control.menu'],
notFor: [
{
context: 'switching between views of the same content',
instead: 'nav.view',
},
],
},