@engie-group/fluid-design-system
Version:
The Fluid Design System is ENGIE’s open-source library to create, build and deliver ENGIE digital services in a more efficient way.
19 lines (18 loc) • 559 B
TypeScript
import { Scale } from '../../variations';
export declare const AVATAR_SCALES: readonly ["sm", "md", "lg", "xl", "2xl", "3xl"];
export type AvatarScale = Extract<Scale, (typeof AVATAR_SCALES)[number]>;
export type AvatarProperties = {
/**
* Avatar scale
**/
scale?: AvatarScale;
/**
* Initials of avatar, max 3 characters.
* If a string with a bigger length than 3 characters, only the 3 first characters are taken
**/
initials?: string;
/**
* Text alternative for the avatar
**/
label: string;
};