🚨 Shai-Hulud Strikes Again:834 Packages Compromised.Technical Analysis →
Socket
Book a DemoInstallSign in
Socket

@synerise/ds-avatar

Package Overview
Dependencies
Maintainers
1
Versions
367
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@synerise/ds-avatar

Avatar UI Component for the Synerise Design System

npmnpm
Version
0.1.0
Version published
Weekly downloads
113
1312.5%
Maintainers
1
Weekly downloads
 
Created
Source

id: avatar title: Avatar

Avatar UI Component

This component can be used to represent people

Based on Ant Design Avatar

Installation

npm i @synerise/ds-avatar
or
yarn add @synerise/ds-avatar

Usage

import Avatar from '@synerise/ds-avatar'

<Avatar
  shape={circle}
  backgroundColor={grey}
  size={20}
/>

Badge sizes

Avatar types

Avatar statuses

API

PropertyDescriptionTypeDefault
iconthe Icon type for an icon avatar, see Icon Componentstring-
shapethe shape of avatarcircle \ squarecircle
sizethe size of the avatarnumber \ string: large small defaultdefault
srcthe address of the image for an image avatarstring-
srcSeta list of sources to use for different screen resolutionsstring-
altThis attribute defines the alternative text describing the imagestring-
onErrorhandler when img load error, return false to prevent default fallback behavior() => boolean-
hasStatusalign badge with avatarbooleanfalse
iconComponentAllow to provider custom component as child. Prop icon has greater priority if both providedReactNode
backgroundColorBackground color of Avatar, one of red/green/grey/yellow/blue/pink/mars/orange/fern/cyan/purple/violetstring
disableddisabled state of Avatarbooleanfalse

FAQs

Package last updated on 15 Oct 2019

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