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
/
helper.d.ts
8 lines
(7 loc)
•
249 B
TypeScript
View Raw
1
2
3
4
5
6
7
8
import
{
AvatarThemeOptions
}
from
"./types"
;
declare
function
getInitials
(
name
:
string
):
string
;
declare
function
getThemeColors
(
options
?:
AvatarThemeOptions
): {
primary
:
string
;
contrast
:
string
; };
export
{ getInitials, getThemeColors };