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

@forter/avatar

Package Overview
Dependencies
Maintainers
0
Versions
29
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@forter/avatar

Avatar from Forter Components

  • 4.1.0
  • latest
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
7
decreased by-85.71%
Maintainers
0
Weekly downloads
 
Created
Source

fc-avatar

Avatar circular element they used to represent person or an object. Can represent either an image or an initial.

Usage

<script>
   import '@forter/avatar';
</script>

<fc-avatar>
</fc-avatar>

Examples

<!-- Avatar Badge -->
<fc-avatar>
   <fc-button icon="close" style="--fc-icon-size: 13px; --fc-button-background-color: black; --fc-button-color: white;" slot="badge"></fc-button>
</fc-avatar>

Properties

PropertyAttributeTypeDefaultDescription
abbrabbrstringtwo chars in the generated avatar.
altaltstring"User Avatar"alternative text for accessibility. example: with
showRawTextshowRawTextboolean
srcsrcstringURL of avatar image can be png or svg. example: https://www.w3schools.com/w3images/avatar2.png

Slots

NameDescription
avatar badge element.

CSS Custom Properties

PropertyDescription
--fc-avatar-background-colorthe color. default: transparent, example: gold
--fc-avatar-font-sizeabbr font size. default: 3em, example: 18px
--fc-avatar-hover-background-colorthe color. default: var(--fc-gray-300), example: var(--fc-red-100)
--fc-avatar-sizeheight and width. default: 48px, example: 96px

Keywords

FAQs

Package last updated on 04 Dec 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