Data display
Avatar group
overlapping avatars + "+N"
function AvatarGroupDemo() { const people = [ { id: "1", initials: "AR" }, { id: "2", initials: "SO", uri: "https://github.com/expo.png" }, { id: "3", initials: "JL" }, { id: "4", initials: "MT" }, { id: "5", initials: "KP" }, { id: "6", initials: "DN" }, ]; return ( <View className="gap-4"> <AvatarGroup items={people} /> <AvatarGroup items={people.slice(0, 3)} size={40} /> </View> );}API
<AvatarGroup items={[{id,initials,uri?}]} max? size? />Get it
Already in every copy of the native kit:
import { AvatarGroup } from '@/components/kit/avatar-group';Details
- Exports
AvatarGroup- Installs with
- @halftone-native/avatar, @halftone-native/lib-utils, @halftone-native/text
- Also searched as
- members, participants, stack, +n
- Registry JSON
- /r/native/avatar-group.json
<div className="flex items-center gap-3"> <AvatarGroup items={TEAM} max={4} /> <span className="text-muted-foreground text-sm">6 people on this project</span></div>API
<AvatarGroup items={[{id,initials,src?}]} max? size? />Get it
Already in every copy of the web kit:
import { AvatarGroup } from '@/components/kit/avatar-group';Details
- Exports
AvatarGroup- Packages
- cn@^0.5.2
- Installs with
- avatar
- Also searched as
- facepile, members
- Registry JSON
- /r/web/avatar-group.json
Agents: the whole registry is at /llms.txt.