Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@snack-uikit/avatar

Package Overview
Dependencies
Maintainers
0
Versions
33
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@snack-uikit/avatar

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

  • 0.6.3-preview-c9b51578.0
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
17
decreased by-74.24%
Maintainers
0
Weekly downloads
 
Created
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

Package last updated on 24 Oct 2024

Did you know?

Socket

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
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc