🚀 Big News: Socket Acquires Coana to Bring Reachability Analysis to Every Appsec Team.Learn more
Socket
DemoInstallSign in
Socket

@erco-ui/avatar

Package Overview
Dependencies
Maintainers
1
Versions
20
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@erco-ui/avatar

1.0.0-alpha.20
latest
npm
Version published
Maintainers
1
Created
Source

Avatar

An accessible avatar component with fallback support and customization options.

Props

NameTypeDescription
altstringAlt text for the image (accessibility)
classNamestringAdditional class names
colorstringAvatar background color
isBorderedbooleanWhether the avatar has a border
namestringFull name (generates initials if no image/text)
radiusstringBorder radius style (sm, md, lg, full)
sizestringAvatar size (sm, md, lg)
srcstringImage source URL
textstringText to display (limited to 2 chars)

Example

<Avatar
  alt='Ernesto Colina'
  color='purple'
  className='my-avatar'
  isBordered={false}
  name='Ernesto Colina'
  radius='lg'
  size='md'
  src='https://example.com/avatar.jpg'
  text='EC'
/>

License

ISC

FAQs

Package last updated on 06 May 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