✨ Add Link component

Inline link with action (default) and neutral variants, plus an
inlineText mode that keeps the underline when embedded in body text.
Includes styles and a website example.
This commit is contained in:
Aksel Mini committed 2026-09-10 13:00:00 +02:00
1 parent 7b7b13f6e6
commit 39f49989eb
6 files changed
+78

No files matched your search

+13
View File
@@ -5,6 +5,7 @@ import {
BodyShort,
Button,
Heading,
Link,
Modal,
TextField,
} from "@navikt/ds-react";
@@ -72,6 +73,18 @@ export function App() {
</div>
</section>
<section className="example">
<Heading level="2" size="medium">
Link
</Heading>
<div className="example__preview example__preview--column">
<BodyShort>
Les mer om <Link href="#top" inlineText>hvordan vi behandler data</Link> før du
søker, eller gå tilbake til <Link href="#top" variant="neutral">forsiden</Link>.
</BodyShort>
</div>
</section>
<section className="example">
<Heading level="2" size="medium">
Accordion