🙋♂️ Made by @abhijithvijayan
❤️ it? ⭐️ it on GitHub or Tweet about it.
Ensure you have Node.js 10 or later installed. Then run the following:
# via npm
npm install react-initials-avatar
# or yarn
yarn add react-initials-avatar
import React from 'react';
import InitialsAvatar from 'react-initials-avatar';
import 'react-initials-avatar/lib/ReactInitialsAvatar.css';
function App() {
return (
<>
<InitialsAvatar name="Sherlock Holmes" />
</>
);
}
Type: string
Name for Initials generation
Type: string
Default: initial-avatar
(with basic styles if css file is imported)
class name for the root div element.
Looking to contribute? Look for the Good First Issue label.
Please file an issue here for bugs, missing documentation, or unexpected behavior.
- Shared Eslint & Prettier Configuration -
@abhijithvijayan/eslint-config
- Shared TypeScript Configuration -
@abhijithvijayan/tsconfig
MIT © Abhijith Vijayan