grbtec / gbt-fluent2-web

Implementação do Fluent Design usando Tailwind, Radix e React.
https://app-gbt-fluent2-web.azurewebsites.net
0 stars 0 forks source link

Avatar #1

Open Willienn opened 2 months ago

Willienn commented 2 months ago

Avatar

An Avatar is a graphical representation of a user, team, or entity. Avatar can display an image, icon, or initials, and supports various sizes and shapes.

Tasks:

Willienn commented 2 months ago

About "idForColor" and "color" i decide to just pass a bg to the component via classname like this:

<Avatar status="online" className="bg-brand-primary">
   <AvatarImage src="https://avatars.githubusercontent.com/u/124599?v=4" />
   <AvatarFallback>Josh Well</AvatarFallback>
</Avatar>

Other way will add extra work and complexity to the component.