Colored fallback
flx/avatar-05FreeBlock
Tinted initials fallbacks using semantic tokens.
Install it
npx shadcn@latest add https://ui.flexnative.com/r/avatar-05.jsonSource
1import { Avatar, AvatarFallback } from '@/components/ui/avatar'23const people = [4 { initials: 'SR', className: 'bg-primary text-primary-foreground' },5 { initials: 'LC', className: 'bg-secondary text-secondary-foreground' },6 { initials: 'AM', className: 'bg-accent text-accent-foreground' },7 { initials: 'JD', className: 'bg-muted text-foreground' },8]910export function Avatar05() {11 return (12 <div className="flex items-center gap-3">13 {people.map(({ initials, className }) => (14 <Avatar key={initials}>15 <AvatarFallback className={className}>{initials}</AvatarFallback>16 </Avatar>17 ))}18 </div>19 )20}
What it pulls in
Other registry items
Files it writes
More from flx
All 446 items| Component | Registry | Kind | Access | Installs | Command |
|---|---|---|---|---|---|
| Basicaccordion-01 | flx | Blocks | Free | no deps | |
| Multipleaccordion-02 | flx | Blocks | Free | no deps | |
| With iconsaccordion-03 | flx | Blocks | Free | no deps | |
| FAQaccordion-04 | flx | Blocks | Free | no deps | |
| Separated cardsaccordion-05 | flx | Blocks | Free | no deps | |
| Plus / minus iconaccordion-06 | flx | Blocks | Free | 1 dep | |
| Left chevronaccordion-07 | flx | Blocks | Free | 1 dep | |
| Rich contentaccordion-09 | flx | Blocks | Free | no deps |
