• Start
  • Blogg
  • Kom igång
  • Riktlinjer
  • Komponenter
  • Changelog
  • Tillgänglighet
  • Statistik
  • Inställningar

Komponenter

Komponenter

​
​

Inga resultat hittade, prova med andra sökvillkor.

Link

Link

3.1.3

The Link component defines a hyperlink, which is used to link from one page to another.

Demo
Props
Installation
Länkar
Tillgänglighet
Change log
Statistik

Demo

Props

Se fullständing dokumentation(öppnas i ny flik)
NamnTypBeskrivning

component

any

customAttribute

{ attribute: string; value: string | number }Used for tests. Clickable and requested subcomponents will be suffixed with "-[ComponentName]".

disablePadding

booleanIf true, vertical padding is removed from the link.

negativeMargins

booleanNegative margins.

variant

"link" | "h1" | "h2" | "h3" | "h4" | "error" | "caption" | "subtitle1" | "body1" | "overline" | "inherit" | "h1Small" | "h1Medium" | "h1Large" | "button1" | "button2" | "srOnly"

Installation

Kodexempel
npm install @sj-ab/component-library.ui.link

Länkar

  • Storybook

  • Figma

  • Bit.cloud

Tillgänglighet

Semantik

Link presenteras i koden som en vanlig ankarlänk: <a href="http://sj.se">

Change log

  • Upgrade to React 19

    3.1.0

Statistik

  • Importer av Link

    48
  • Repos med Link

    44%
  • Senaste installerade version av Link

    3.1.3
  • Äldsta installerade version av Link

    3.1.0