Adding size and colour to Avatar component
Summary
Adding the option of choosing between md and sm for the size of the Avatar. Also Adding different options for colours. Starting with 3, can add more easily later.
https://github.com/user-attachments/assets/bdab443d-8b2f-4509-a815-b3950c8ff540
The latest updates on your projects. Learn more about Vercel for Git ↗︎
| Name | Status | Preview | Comments | Updated (UTC) |
|---|---|---|---|---|
| click-ui | ✅ Ready (Inspect) | Visit Preview | 💬 Add feedback | Aug 19, 2024 6:29pm |
What if we change the name of the component to something more generalized?
CircularContainer, something like that. It seems like the element has different use cases, not avatar only.
Also additional use cases:
For it we need to more colors
I think that is extending Click Icon to have a backgroundColour prop.
I think that is extending Click Icon to have a
backgroundColourprop.
What about a rounded shape? Should it be a custom or added to <Icon /> too?
I'll close this as the changes I made are not consistent with what an avatar actually is.