AvatarRing
Avatars start stacked in the centre, curve out to a ring like a train, spread evenly around it, then the ring keeps slowly turning.
Preview
Installation
npx @codewithrabby/ui@latest add avatar-ringUsage
import { AvatarRing } from "@/components/uir/avatar-ring";
<AvatarRing
avatars={[require("./ada.jpg"), { uri: "https://..." }]}
radius={70}
spinDuration={20000}
/>Props
| Prop | Type | Default |
|---|---|---|
avatarsAvatar images, local or remote. | ImageSource[] | — |
avatarSizeAvatar diameter. | number | 48 |
radiusRing radius, centre to avatar centre. | number | 70 |
delayWait (ms) before fanning out. | number | 400 |
durationFan-out length (ms). | number | 1200 |
spinDurationOne full turn (ms). 0 turns the spin off. | number | 20000 |
borderColorBorder around each avatar; usually your background colour. | string | "#fff" |
styleStyle for the ring container. | ViewStyle | — |