Skip to content
synccn

Animated List

Live feed that reveals items one at a time.

    Installation

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

    First time in this project? Connect synccn with one command.

    Usage

    import { AnimatedList } from "@/components/ui/animated-list";<AnimatedList items={events} renderItem={(e) => …} />

    API reference

    Generated from the component's TypeScript types, so it always matches the code.

    AnimatedList

    Reveals items one by one, newest on top, like a live activity feed.

    • itemsrequired
      T[]

      Items to cycle through.

    • interval
      number

      Default 1600

      Milliseconds between new items.

    • max
      number

      Default 5

      Most items visible at once.

    • renderItemrequired
      (item: T) => React.ReactNode

      Renders one item.

    • className
      string

      Extra classes for the root element.

    Dependencies

    Read from the component's imports when the site builds. The CLI installs all of these for you.

    Helpers

    npm packages

    Accessibility

    From the source

    Read from this component's code when the site builds, so it can't drift.

    • ARIA attributes: aria-live
    • Announces changes to screen readers