Socket
Socket
Sign inDemoInstall

@snack-uikit/avatar

Package Overview
Dependencies
7
Maintainers
3
Versions
18
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

    @snack-uikit/avatar

Пользовательский автар (с инициалами либо картинкой)


Version published
Weekly downloads
100
decreased by-65.16%
Maintainers
3
Install size
144 kB
Created
Weekly downloads
 

Readme

Source

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-класс

FAQs

Last updated on 23 Apr 2024

Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc