MetaCard
Installation
Section titled “Installation”npm install @sk-web-gui/reactAnvändning
Section titled “Användning”import { MetaCard } from '@sk-web-gui/react';| Prop | Typ | Standard | Beskrivning |
|---|---|---|---|
children | React.ReactNode | – | React node |
color | 'mono' | 'vattjom' | – | Set background color to card @default vattjom |
useHoverEffect | boolean | – | If the card should be clickable, will apply hover style @default false |
href | string | – | Make the card linkable |
size | 'sm' | 'md' | – | Size of the card @default sm |
icon | React.JSX.Element | – | Set icon @default <Text/> |
Storyvarianter
Section titled “Storyvarianter”- Template – standardstory
- Implementation: @sk-web-gui/card
- Storybook: MetaCard