Skip to main content

Avatar

Availity user avatar component

Version

Installation

npm

npm install @availity/avatar --save

Yarn

yarn add @availity/avatar

Example

import React from 'react';
import Avatar from '@availity/avatar';

const Example = () => <Avatar style={{ width: 100 }} />;

Live example

Storybook

Props

skeletonProps?: object

Dimensions passed to loader to show while the avatar is loading.

fallback?: string

Image url to render if the url for the avatar is not found.

Default: "/public/apps/my-profile/images/Avatars-00.png".