Source
<norn-skip-link></norn-skip-link>
Copy {name} to clipboard
Copy
Copied
Copy failed
html code
Link that jumps past the page chrome to the main content. Hidden until it has focus: press Tab from the top of the page to show it. Give the target tabindex="-1", as in <main id="main" tabindex="-1">.
<norn-skip-link></norn-skip-link>
Copy {name} to clipboard
Copy
Copied
Copy failed
html code
Write them with the @ prefix, and :@ for an expression.
| Name | Type | Description |
|---|---|---|
@href |
string |
The target's fragment. Falls back to #main. |
| Name | Description |
|---|---|
label |
The link text, as one element, such as <span slot="label">Aller au contenu</span>. Falls back to the site's componentStrings, then "Skip to content". |
The global tokens from tokens.json the component reads. Set one in a project's tokens.css to change it everywhere.
Type a value to try it in every example above. Reset puts the default back.
| Token | Type | Default | Override |
|---|---|---|---|
--norn-ui-accentThe brand color, shared by every component. |
<color> |
#2346d4 |
|
--norn-ui-border-radiusCorner radius. |
<length> |
6px |
|
--norn-surface-raisedRaised surface. |
<color> |
light-dark(hsl(40, 14%, 96%), #242932) |
|
--norn-text-baseText color. |
<color> |
light-dark(#16181d, #eceef3) |
|
--norn-space-xsExtra small spacing step. |
<length> |
0.5rem |
|
--norn-space-sSmall spacing step. |
<length> |
0.75rem |
|
--norn-space-mMedium spacing step. |
<length> |
1.25rem |