0.8.8 • Published 1 month ago

@snack-uikit/avatar v0.8.8

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

Avatar

Installation

npm i @snack-uikit/avatar

Changelog

Example

import { Avatar } from "@snack-uikit/avatar";

<Avatar
  name="Name Surname"
  src="path-to-avatar/image.jpg"
  size='xl'
/>

<Avatar 
  name="Name Surname"
  appearance='pink'
  indicator='violet'
  shape='square'
  showTwoSymbols={true}
/>

Avatar

Компонент отображения аватара пользователя.

Props

nametypedefault valuedescription
name*string-Имя
srcstring-src аттрибут изображеня
appearanceenum Appearance: "red", "orange", "yellow", "green", "blue", "violet", "pink", "neutral"redВнешний вид
sizeenum Size: "xxs", "xs", "s", "m", "l", "xl", "xxl"sРазмер
shapeenum Shape: "round", "square"roundФорма: круглая или квадратная
indicatorenum Appearance: "red", "orange", "yellow", "green", "blue", "violet", "pink", "neutral", "primary"-Индикатор
showTwoSymbolsboolean-Отображение двух заглавных символов имени
classNamestring-CSS-класс
0.8.8

2 months ago

0.8.5

4 months ago

0.8.4

6 months ago

0.8.7

2 months ago

0.8.6

4 months ago

0.8.1

8 months ago

0.8.3

7 months ago

0.8.2

7 months ago

0.8.0

9 months ago

0.7.0

9 months ago

0.6.2

10 months ago

0.6.1

1 year ago

0.6.0

1 year ago

0.5.1

1 year ago

0.5.0

2 years ago

0.4.1

2 years ago

0.4.0

2 years ago