short for avatar, ava is a React package that creates an avatar for a given string initial.
via npm
npm install @karim-w/ava
via yarn
yarn add @karim-w/ava
import { ava } from "@karim-w/ava";
function App() {
//...
return (
<div>
<Ava initials="KH" width="100px" height="100px" />;
</div>
);
}
Name | Type | Default | Description |
---|---|---|---|
initials | string | The initials to be used to create the avatar | |
width | string | The width of the avatar | |
height | string | The height of the avatar | |
textSize | string | 1.5rem | The size of the text inside the avatar |
MIT
Karim Hassam
Pull requests are welcome. For major changes, please open an issue first to discuss what you would like to change.