@lieinapril/utente-avatar
v0.7.5
Published
[Neumorphism] Avatars can be used to represent people or objects. It supports images, icons or letters.
Downloads
5
Readme
@lieinapril/utente-avatar
Neumorphism - Avatars can be used to represent people or objects. It supports images, icons or letters.
Documentation
Refer to the following storybook.
Installation
Install guide
npm install @lieinapril/utente-avatar
Usage
import { Avatar } from '@lieinapril/utente-avatar';
const Example = () => {
const args = {
theme: "light",
size: "medium",
shape: "square",
indented: false
};
const imgSrc = "https://randomuser.me/api/portraits/women/21.jpg";
return (
<div style={{ display: "flex", gap: 20, backgroundColor: "#eee" }}>
<Avatar {...args} text="U" />
<Avatar {...args} text="US" />
<Avatar {...args} text="USE" />
<Avatar {...args} text="USERS" />
<Avatar {...args} src={imgSrc} />
<Avatar {...args} icon={<i className="fas fa-search"></i>} />
</div>
);
}