1.0.16 • Published 2 years ago

react-celebrity-avatars v1.0.16

Weekly downloads
-
License
MIT
Repository
-
Last release
2 years ago

React Celebrity Avatars

npm

A Celebrity Avatar Library for React created by Jagath Jayakumar.

Installation

yarn add react-celebrity-avatars
# or
npm install react-celebrity-avatars --save

example usage

import { Mohanlal } from 'react-celebrity-avatars';

const myComponent = () => {
  return (
    <Mohanlal
      className="custom-class other-class"
      status="online"
      size="1"
      shape="circle"
      theme="tan"
      borderTheme="sandstorm"
    />
  );
};
PropsDefaultValuesNotes
classNameundefinedany stringCan add one or more custom classes
status1emonline, busyCan use any of the values
styleundefinedCan overwrite size, theme, border
size11, 2, 3, 4,...24Use any number 1 to 24
shapecirclecircle, rounded, squareCan change shape of the avatar
themeundefineddark, light, lavender, cherry etcRefer below listed values
borderThemeundefineddark, light, lavender, pink etcRefer below listed values
titleundefinedany stringDescription for accessibility

theme:

dark, light, lavender, turquoise, pink, sandstorm, blue, lily, pearl, tan, marine, orange, fresh, hosanna, dreamy, love, piglet, mauve, shades, memory, social, cherry, insta

borderTheme:

dark, light, lavender, turquoise, pink, sandstorm, blue, lily, pearl, tan, marine, orange, fresh

Plugins used

The following plugins are utilized in this project:

Rollup:

Babel:

Licence

MIT

  • Avatars are designed by different designers, whose names are available in documentation website (under construction).
1.0.16

2 years ago

1.0.15

2 years ago

1.0.14

2 years ago

1.0.13

2 years ago

1.0.12

2 years ago

1.0.11

2 years ago

1.0.10

2 years ago

1.0.9

2 years ago

1.0.8

2 years ago

1.0.7

2 years ago

1.0.4

2 years ago

1.0.3

2 years ago

1.0.0

2 years ago