action.navigate
Goes to another page or place from inside a sentence: an inline link
Action intents
Example
<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
Use
Goes to another page or place from inside a sentence: an inline link
action.navigatethis pageA link on its own line to more, like Learn more or See all
action.moreSecondary links to other pages
rather thanaction.startaction.navigatethis pageA link inside text
rather thanaction.guideaction.navigatethis pageGoing to the sign-in page
rather thanaction.signoutaction.navigatethis pageGoing to another page of this site
rather thanaction.openaction.navigatethis pageA link inside a sentence
rather thanaction.moreaction.navigatethis pageA link inside a sentence
rather thannav.entryaction.navigatethis 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
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.linkInline 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.navigateGoes to another page or place from inside a sentence: an inline 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': {
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',
},
],
},