avatar
vengenceui/avatarFreeComponent
vengenceui publishes no description for this item.
Live preview
live · rendered by the registry
Rendered by vengenceui on their own page — this is the component running, not a screenshot of it.Install it
npx shadcn@latest add https://www.vengenceui.com/r/avatar.jsonSource
1'use client'23import * as React from 'react'4import * as AvatarPrimitive from '@radix-ui/react-avatar'56import { cn } from '@/lib/utils'78function Avatar({ className, ...props }: React.ComponentProps<typeof AvatarPrimitive.Root>) {9 return (10 <AvatarPrimitive.Root11 data-slot="avatar"12 className={cn('relative flex size-8 shrink-0 overflow-hidden rounded-full', className)}13 {...props}14 />15 )16}1718function AvatarImage({ className, ...props }: React.ComponentProps<typeof AvatarPrimitive.Image>) {19 return (20 <AvatarPrimitive.Image21 data-slot="avatar-image"22 className={cn('aspect-square size-full', className)}23 {...props}24 />25 )26}2728function AvatarFallback({ className, ...props }: React.ComponentProps<typeof AvatarPrimitive.Fallback>) {29 return (30 <AvatarPrimitive.Fallback31 data-slot="avatar-fallback"32 className={cn('bg-muted flex size-full items-center justify-center rounded-full', className)}33 {...props}34 />35 )36}3738export { Avatar, AvatarImage, AvatarFallback }
What it pulls in
npm packages
Files it writes
More from vengenceui
All 128 items| Component | Registry | Kind | Access | Installs | Command |
|---|---|---|---|---|---|
| accordionaccordion | vengenceui | Components | Free | 2 deps | |
| agent-bento-gridagent-bento-grid | vengenceui | Components | Free | 1 dep | |
| alertalert | vengenceui | Components | Free | no deps | |
| animated-buttonanimated-button | vengenceui | Components | Free | 1 dep | |
| animated-footeranimated-footer | vengenceui | Components | Free | 2 deps | |
| animated-numberanimated-number | vengenceui | Components | Free | 1 dep | |
| animated-raysanimated-rays | vengenceui | Components | Free | no deps | |
| animated-tooltipanimated-tooltip | vengenceui | Components | Free | 1 dep |
