- Accordion
- Attachment
- Avatar
- Badge
- Breadcrumb
- Button
- Button Group
- Card
- Checkbox
- Code Block
- Collapsible
- Dialog
- Dropdown Menu
- Empty
- Field
- Hover Card
- Input
- Input Group
- Input OTP
- Item
- Label
- Marker
- Message
- Number Flow
- Pagination
- Popover
- Progress
- Radio Group
- Select
- Slider
- Sonner
- Spinner
- Switch
- Tooltip
- Separator
- Sheet
- Tabs
- Textarea
- Toggle
- Toggle Group
- Trace
React
The @frakment/react package has been merged into the message component.
The @frakment/react package is no longer published. Its message-scroller engine now ships inside the message registry component.
Migration
Install the message component:
$ bunx --bun frakment@latest add message$ npx frakment@latest add message$ pnpm dlx frakment@latest add message$ yarn dlx frakment@latest add message
Replace the package import with the component import:
import { MessageScroller } from "@/components/ui/message";The MessageScroller export shape is unchanged. The compound has the same six parts (Provider, Root, Viewport, Content, Item, Button) and the three hooks (useMessageScroller, useMessageScrollerScrollable, useMessageScrollerVisibility) remain available.
Why
Scroll behavior and bubble rendering belong together. Consolidating into a single file removes the React 19 peer requirement at the docs level, drops the npm dependency, and lets the copy-paste workflow own the entire chat UI.
See Message for the full component.