avatar
bejamas-ui/avatarFreeComponent
bejamas/ui publishes no description for this item.
Live preview
live · rendered by the registry
Rendered by bejamas/ui on their own page — this is the component running, not a screenshot of it.Install it
npx shadcn@latest add https://ui.bejamas.com/r/avatar.jsonSource
1---2// Generated from bejamas-juno style registry. Do not edit packages/ui/src/components/avatar/Avatar.astro directly.3/**4 * @component Avatar5 * @title Avatar6 * @description An image representing a user or entity, with fallback support when unavailable.7 * @figmaUrl https://www.figma.com/design/koxai7zw5vIuBzuVxe5T2l/BejamasUI---Design-System?node-id=2531-2620&t=YFStJ3V8fXEO8QD8-48 *9 * @preview10 * <div class="flex flex-wrap items-center gap-4">11 * <Avatar>12 * <AvatarImage src="https://github.com/thomkrupa.png" alt="@thomkrupa" />13 * <AvatarFallback>TK</AvatarFallback>14 * <AvatarBadge />15 * </Avatar>16 * <AvatarGroup>17 * <Avatar>18 * <AvatarImage src="https://github.com/withastro.png" alt="@withastro" />19 * <AvatarFallback>WA</AvatarFallback>20 * </Avatar>21 * <Avatar>22 * <AvatarImage src="https://github.com/bejamas.png" alt="@bejamas" />23 * <AvatarFallback>BJ</AvatarFallback>24 * </Avatar>25 * <AvatarGroupCount>+2</AvatarGroupCount>26 * </AvatarGroup>27 * </div>28 *29 * @usage30 *31 * ```astro nocollapse32 * ---33 * import {34 * Avatar,35 * AvatarImage,36 * AvatarFallback,37 * AvatarBadge,38 * AvatarGroup,39 * AvatarGroupCount,40 * } from '@bejamas/ui/components/avatar';41 * ---42 *43 * <Avatar size="lg">44 * <AvatarImage src="https://github.com/thomkrupa.png" alt="@thomkrupa" />45 * <AvatarFallback>TK</AvatarFallback>46 * <AvatarBadge />47 * </Avatar>48 * ```49 *50 * @examples51 *52 * ### Sizes53 *54 * <div class="flex items-center gap-4">55 * <Avatar size="sm">56 * <AvatarImage src="https://github.com/bejamas.png" alt="small" />57 * <AvatarFallback>SM</AvatarFallback>58 * </Avatar>59 * <Avatar>60 * <AvatarImage src="https://github.com/bejamas.png" alt="default" />61 * <AvatarFallback>MD</AvatarFallback>62 * </Avatar>63 * <Avatar size="lg">64 * <AvatarImage src="https://github.com/bejamas.png" alt="large" />65 * <AvatarFallback>LG</AvatarFallback>66 * </Avatar>67 * </div>68 *69 * ### Badge70 *71 * <Avatar>72 * <AvatarImage src="https://github.com/thomkrupa.png" alt="@thomkrupa" />73 * <AvatarFallback>TK</AvatarFallback>74 * <AvatarBadge />75 * </Avatar>76 *77 * ### Group78 *79 * <AvatarGroup>80 * <Avatar>81 * <AvatarImage src="https://github.com/withastro.png" alt="@withastro" />82 * <AvatarFallback>WA</AvatarFallback>83 * </Avatar>84 * <Avatar>85 * <AvatarImage src="https://github.com/bejamas.png" alt="@bejamas" />86 * <AvatarFallback>BJ</AvatarFallback>87 * </Avatar>88// … truncated
Files it writes
More from bejamas/ui
All 41 items| Component | Registry | Kind | Access | Installs | Command |
|---|---|---|---|---|---|
| accordionaccordion | bejamas/ui | Components | Free | 1 dep · 5 files | |
| alertalert | bejamas/ui | Components | Free | no deps · 4 files | |
| badgebadge | bejamas/ui | Components | Free | no deps · 2 files | |
| breadcrumbbreadcrumb | bejamas/ui | Components | Free | no deps · 5 files | |
| buttonbutton | bejamas/ui | Components | Free | no deps · 2 files | |
| button-groupbutton-group | bejamas/ui | Components | Free | no deps · 4 files | |
| cardcard | bejamas/ui | Components | Free | no deps · 10 files | |
| carouselcarousel | bejamas/ui | Components | Free | no deps · 3 files |
