Socket
Book a DemoInstallSign in
Socket

@wedgekit/avatar

Package Overview
Dependencies
Maintainers
17
Versions
1
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@wedgekit/avatar

avatars for the wedgekit design system

0.0.0
test
latest
npmnpm
Version published
Maintainers
17
Created
Source

Avatar

Purpose

The Avatar component displays information about a user.

Basic Implementation

import Avatar from '@wedgekit/avatar';

const Example = () => <Avatar color="T100">Bilbo Baggins</Avatar>;

render(<Example />);

API

PropTypeRequired?defaultdescription
childrenstringA name or number that will be converted to initials or a count. If children is not provided or the component is used as a self closing component, Avatar will render a Plus icon.
colorstringA valid WedgeKit tag color.
outlinebooleanfalseWhether or not the avatar is in outline mode.
size"small" | "medium" | "large"medium
darkbooleanfalseWhether or not the focus state should be white. This is useful when the element is on a darker background and needs higher contrast for focus.
onClick(HTMLClickEvent) => {}When present the avatar is interactive and can receive focus. Otherwise it will be for display only.

FAQs

Package last updated on 01 Jun 2022

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

About

Packages

Stay in touch

Get open source security insights delivered straight into your inbox.

  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc

U.S. Patent No. 12,346,443 & 12,314,394. Other pending.