Skip to content

initials

function initials(name): string;

Defined in: src/ui/format.ts:100

Up to two initials for an avatar: "Ada Lovelace" → "AL", "[email protected]" → "AL" (the email domain is ignored), "?" when nothing is left.

Parameter Type
name string | null | undefined

string