0.7.6 • Published 1 month ago

@snack-uikit/icon-predefined v0.7.6

Weekly downloads
-
License
Apache-2.0
Repository
github
Last release
1 month ago

Icon Predefined

Installation

npm i @snack-uikit/icon-predefined

Changelog

Example

import { HeartSVG } from '@snack-uikit/icons';
import { IconPredefined } from '@snack-uikit/icon-predefined';

<IconPredefined
    appearance='red'
    size='l'
    className='className'
    icon={HeartSVG}
    decor
/>

Props

icon: JSXElementConstructor

Компонент svg-иконки из пакета @snack-uikit/icons.

className?: string

css-класс контейнера.

appearance?: Appearance - primary

Цвет иконки. Возможные варианты:

  • primary
  • neutral
  • red
  • orange
  • yellow
  • green
  • blue
  • violet
  • pink

size?: Size - s

Размер компонента. Возможные варианты:

  • s
  • m
  • l

decor?: boolean - [true]

Включает цветную подложку для иконки.

IconPredefined

Props

nametypedefault valuedescription
icon*JSXElementConstructor<{ size?: number; className?: string; }>-JSX иконки
classNamestring-CSS-класс
appearanceenum Appearance: "primary", "neutral", "red", "orange", "yellow", "green", "blue", "violet", "pink"primaryВнешний вид
decorbooleantrueНаличие цветной подложки
sizeenum Size: "s", "m", "l"mРазмер
shape"round" | "square"roundФорма: круглая или квадратная
0.7.2

7 months ago

0.7.1

8 months ago

0.7.4

4 months ago

0.7.3

6 months ago

0.7.6

2 months ago

0.7.5

4 months ago

0.7.0

9 months ago

0.6.0

9 months ago

0.5.2

10 months ago

0.5.1

1 year ago

0.5.0

1 year ago

0.4.2

1 year ago

0.4.1

2 years ago

0.4.0

2 years ago

0.3.1

2 years ago

0.3.0

2 years ago