Skip to content

Avatar

GitHub

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

DescriptionThe src of the avatar on the screen
Typestring
Defaultundefined

size

DescriptionThe size of the banner text
Typesm | md | lg | undefined
Defaultmd

borderRadius

DescriptionThe roundness of the avatar
Typesm | md | lg | xl | full | none
Defaultfull

Done