Komponent
Installation
Section titled “Installation”npm install @sk-web-gui/reactAnvändning
Section titled “Användning”import { Text } from '@sk-web-gui/react';| Prop | Typ | Standard | Beskrivning |
|---|---|---|---|
urlAsLink | boolean | – | If text looking like urls should be clickable links |
externalLinks | boolean | – | If links should be external or not |
onLinkClick | (event: MouseEvent, url: string) => void | – | |
children | React.ReactNode | – | React node |
as | React.ElementType | – | The element or component to use in place of div |
Storyvarianter
Section titled “Storyvarianter”- Template – standardstory
- Implementation: @sk-web-gui/text
- Storybook: Komponent