Ballmac UI home

Animated List

A live feed where new items spring in at the top and the rest glide down, with leave animations, an item cap, an optional fading tail and a polite announcement for new entries.

  • Payment receivedInvoice #1042 · $4,900now

Installation

$ pnpm dlx shadcn@latest add @ballmac/animated-list

Usage

import { AnimatedList, AnimatedListItem } from "@/components/ballmac/animated-list"

The full example is in the Code tab above.

Examples

Capped activity log

API reference

PropTypeDefault
max

Most items drawn. Extra items beyond this are left out.

number—
fadeEnd

Fade the last visible items out so a long feed trails off.

booleanfalse
announce

Read new items aloud politely, for feeds people rely on.

booleanfalse
label

Accessible name of the feed.

string—

Also accepts the standard attributes of its root element.

Accessibility

KeyAction
Screen readersannounce turns on a polite live region that reads additions only
Reduced motionItems fade in without moving or scaling

Use with AI

<AnimatedList max fadeEnd announce><AnimatedListItem key={id}>…</AnimatedListItem></AnimatedList>. Each item needs a stable key. Prepend new entries to your array; layout animation does the rest. With the shadcn MCP server set up (guide), ask your agent:

Add the Ballmac UI Animated List (@ballmac/animated-list) to this project with the shadcn MCP, then use it where it fits.

Use it for

  • Live activity, notification and event feeds
  • Chat-like logs where entries arrive over time

Not for

  • Static lists (stagger-list)
  • Hundreds of rows (virtualize instead)

Registry JSON: https://ui.ballmac.com/r/animated-list.json

Credits

Free to use in personal and commercial projects.

Registry
shadcn/utils