UIR

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-ring

Usage

import { AvatarRing } from "@/components/uir/avatar-ring";

<AvatarRing
  avatars={[require("./ada.jpg"), { uri: "https://..." }]}
  radius={70}
  spinDuration={20000}
/>

Props

PropTypeDefault
avatars

Avatar images, local or remote.

ImageSource[]—
avatarSize

Avatar diameter.

number48
radius

Ring radius, centre to avatar centre.

number70
delay

Wait (ms) before fanning out.

number400
duration

Fan-out length (ms).

number1200
spinDuration

One full turn (ms). 0 turns the spin off.

number20000
borderColor

Border around each avatar; usually your background colour.

string"#fff"
style

Style for the ring container.

ViewStyle—