UNPKG
default-avatar
Version:
latest (1.0.0)
1.0.0
A customizable React component to generate default avatars with initials and themed colors.
default-avatar
/
dist
/
types
/
index.d.ts
4 lines
(3 loc)
•
255 B
TypeScript
View Raw
1
2
3
4
import
React
from
"react"
;
import
{
AvatarProps
}
from
"./types"
;
export
default
function
Avatar
(
{ name, fontFamily, size, shape, style, backgroundColor, textColor, fontSize, padding, useNameBasedColor, theme, ...rest }: AvatarProps
):
React
.
ReactElement
;