Avatar
A versatile component that displays an avatar with various styles and sizes.
Installation
npm
npx maiton add avatar
Props
The Avatar
component extends img
, so you can pass all standard img
props.
src
Description | The src of the avatar on the screen |
---|---|
Type | string |
Default | undefined |
size
Description | The size of the banner text |
---|---|
Type | sm | md | lg | undefined |
Default | md |
borderRadius
Description | The roundness of the avatar |
---|---|
Type | sm | md | lg | xl | full | none |
Default | full |