Icon
Installation
Section titled “Installation”npm install @sk-web-gui/reactAnvändning
Section titled “Användning”import { Icon } from '@sk-web-gui/react';| Prop | Typ | Standard | Beskrivning |
|---|---|---|---|
color | | 'tertiary' | 'info' | 'success' | 'primary' | 'warning' | 'error' | 'vattjom' | 'gronsta' | 'bjornstigen' | 'juniskar' | – | @default primary |
icon | React.ReactElement | – | |
rounded | boolean | – | @default false |
inverted | boolean | – | @default false |
variant | 'tertiary' | 'ghost' | – | @default tertiary |
size | number | string | 'fit' | – | @default 2.4rem |
Standardargs (från Meta.args)
Section titled “Standardargs (från Meta.args)”{ "icon": { "__raw": "<Check />" }}Storyvarianter
Section titled “Storyvarianter”- Template – standardstory
- Implementation: @sk-web-gui/icon
- Storybook: Icon