Skip to content

Anchor (Text Link)

Demos

Anchor states

<ul className="dnb-ul dnb-unstyled-list">
<li>
<Anchor
href="/uilib/components/anchor"
>
Default Style
</Anchor>
</li>
<li>
<Anchor target="_blank" href="/uilib/components/anchor">
Blank target with https
</Anchor>
</li>
<li>
<Anchor
href="/uilib/components/anchor"
className="dnb-anchor--hover"
>
Hover Style
</Anchor>
</li>
<li>
<Anchor
href="/uilib/components/anchor"
className="dnb-anchor--active"
>
Active Style
</Anchor>
</li>
<li>
<Anchor
href="/uilib/components/anchor"
className="dnb-anchor--focus"
>
Focus Style
</Anchor>
</li>
</ul>

Additional Anchor helper classes

To force a specific state of style, use the following classes to do so:

Anchor modifiers

Anchor with icons

Anchor in headings

Anchor in Section

<Section spacing style_type="emerald-green">
<Anchor className="dnb-anchor--no-underline" href="https://dnb.no/">
Anchor in Section without underline
</Anchor>
</Section>