🚀 DAY 5 OF LAUNCH WEEK: Introducing Socket Firewall Enterprise.Learn more
Socket
Book a DemoInstallSign in
Socket

@snack-uikit/avatar

Package Overview
Dependencies
Maintainers
3
Versions
78
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@snack-uikit/avatar

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

Source
npmnpm
Version
0.8.14-preview-2ce82c96.0
Version published
Weekly downloads
93
-63.1%
Maintainers
3
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 01 Sep 2025

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