TwitterGithub

Avatar

An image element with a fallback for representing the user.

RG

Installation

npx nx g @spartan-ng/cli:ui avatar

Usage

import { HlmAvatarImageDirective, HlmAvatarComponent, HlmAvatarFallbackDirective } from '@spartan-ng/ui-avatar-helm';
<hlm-avatar>
   <img src='/assets/avatar.png' alt='spartan logo. Resembling a spartanic shield' hlmAvatarImage />
   <span class='text-white bg-destructive' hlmAvatarFallback>RG</span>
</hlm-avatar>
Badge Aspect Ratio