nav.trail
One link in a breadcrumb trail of the pages above this one. Put them in a nav with aria-label="Breadcrumb" and pass current on the last
Navigation intents
Example
Choosing between neighbours
Find the row that describes your element, and use the intent on the right.
If it is
Use
One link in a breadcrumb trail of the pages above this one. Put them in a nav with aria-label="Breadcrumb" and pass current on the last
nav.trailthis pagePages in site or app navigation
nav.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
Pack intent. prongs add saas puts the saas pack’s intents in your registry. They are then yours like the starter intents: 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.trail 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.trailOne link in a breadcrumb trail of the pages above this one. Put them in a nav with aria-label="Breadcrumb" and pass current on the last
text-sm font-medium text-surface-muted hover:text-foreground aria-[current]:text-foreground
'nav.trail': {
kind: 'semantic',
description: 'One link in a breadcrumb trail of the pages above this one. Put them in a nav with aria-label="Breadcrumb" and pass current on the last',
refs: ['control.menu'],
notFor: [{ context: 'pages in site or app navigation', instead: 'nav.page' }],
},