fma-ui

Message Scroller

An auto-scrolling viewport for chat message lists: sticks to the latest message as new ones arrive, and shows a jump-to-end/start button once the user scrolls away. Experimental: it doesn't sit on react-aria-components like the rest of this registry, and @shadcn/react is still pre-1.0.

ChatshadcnexperimentalRegistry JSON

Installation

  1. 1

    Register the @fma-ui namespace in components.json (once)

    components.json
    {
      "registries": {
        "@fma-ui": "https://ui.fmartinsandre.dev.br/r/{name}.json"
      }
    }
  2. 2

    Add the item

    pnpm dlx shadcn@latest add @fma-ui/message-scroller

    Files land in components/fma-ui/message-scroller.tsx; npm and registry dependencies are installed along with them.

Dependencies

npm
@shadcn/react@^0.3.1cn@^0.4.0lucide-react@^1.52.0