Skip to content

xterr/react-bootstrap-avatar

Repository files navigation

React Bootstrap Avatar

The Avatar component which can display the person's image, initials, or an icon, and can be either circular or square.

Installation

npm install --save @xterr/react-bootstrap-avatar

or:

yarn add @xterr/react-bootstrap-avatar

Usage

To import Avatar:

import { Avatar } from '@xterr/react-bootstrap-avatar';

Examples

<Avatar name="Miguel Garcia" />
<Avatar size={72} name="Mona Kane" image="./MonaKane.jpg" />
<Avatar shape="square" icon={<IDBadgeIcon />} />

Displaying a badge:

<Avatar name="Allan Munger" badge={<PresenceBadge status="busy">} />

With active state indication:

<Avatar name="Daisy Phillips" active={true} activeAppearance="ring-shadow" />
<Avatar name="Robin Counts" active={false} activeAppearance="ring-shadow" />

License

MIT License

About

React Bootstrap Avatar

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published