avatar-group
ora-ui/avatar-groupFreeComponent
ora-ui publishes no description for this item.
Live preview
live · rendered by the registry
Rendered by ora-ui on their own page — this is the component running, not a screenshot of it.Install it
npx shadcn@latest add https://ora-ui.com/r/avatar-group.jsonSource
1'use client';23import * as React from 'react';45import { cn } from '@/registry/lib/utils';67function AvatarGroup({ className, ...props }: React.ComponentProps<'div'>) {8 return (9 <div10 data-slot="avatar-group"11 className={cn(12 'group/avatar-group flex -space-x-2 *:data-[slot=avatar]:ring-1 *:data-[slot=avatar]:ring-background',13 className14 )}15 {...props}16 />17 );18}1920function AvatarGroupCount({ className, ...props }: React.ComponentProps<'div'>) {21 return (22 <div23 data-slot="avatar-group-count"24 className={cn(25 'relative flex size-8 shrink-0 items-center justify-center rounded-full bg-ui text-sm text-secondary group-has-data-[size=lg]/avatar-group:size-10 group-has-data-[size=sm]/avatar-group:size-6 [&>svg]:size-4 group-has-data-[size=lg]/avatar-group:[&>svg]:size-5 group-has-data-[size=sm]/avatar-group:[&>svg]:size-3',26 className27 )}28 {...props}29 />30 );31}3233export { AvatarGroup, AvatarGroupCount };
What it pulls in
Other registry items
Files it writes
More from ora-ui
All 31 items| Component | Registry | Kind | Access | Installs | Command |
|---|---|---|---|---|---|
| accordionaccordion | ora-ui | Components | Free | 2 deps | |
| alert-dialogalert-dialog | ora-ui | Components | Free | 1 dep | |
| avataravatar | ora-ui | Components | Free | 1 dep | |
| badgebadge | ora-ui | Components | Free | 2 deps | |
| buttonbutton | ora-ui | Components | Free | 2 deps | |
| button-groupbutton-group | ora-ui | Components | Free | 2 deps | |
| checkboxcheckbox | ora-ui | Components | Free | 3 deps | |
| checkbox-groupcheckbox-group | ora-ui | Components | Free | 1 dep |
