The first stable release. Adds Reasoning, Loader, Model Selector, and Approval Card, moves Chain Of Thought inside Reasoning, adds Agenda keyboard support and chat updates, and requires HeroUI 3.2.8 and tailwind-variants 4.0.2.
HeroUI Pro React 1.0.0 is the first stable release. It adds four AI components: Reasoning, Loader, Model Selector, and Approval Card. Chain Of Thought is now a list of steps inside Reasoning.
The chat components gain a scroll hook, a card message variant, a "+N more" source list, and suggestion items that render as buttons or links. Agenda now works with the keyboard, and accessibility fixes land across Sidebar, Map, Rich Text Editor, Data Grid, Native Select, Emoji Picker, Floating TOC, and keyboard focus rings.
⚠️ Breaking changes: @heroui/react and @heroui/styles peer minimums are now >=3.2.8, and tailwind-variants is now >=4.0.2. ChatSource renders a span and puts ChatSource.Trigger props on the chip. Chain Of Thought markup and classes changed; the beta API still renders but is deprecated. Prompt Suggestion card items are now buttons or links. Four chat *Variants types changed shape. Read Breaking Changes before you upgrade.
Use Reasoning to show the model's thinking as it streams. Pass the run's status: streaming, complete, stopped, or error. The trace opens on the first text and collapses 1000ms after the status turns complete, unless the user toggled it.
import {Reasoning} from "@heroui-pro/react";
<Reasoning duration="9s" status={status}>
<Reasoning.Trigger />
<Reasoning.Content>
<Reasoning.Text>{text}</Reasoning.Text>
</Reasoning.Content>
</Reasoning>;status="stopped" and status="error" keep the trace open or collapsed as it was. The label reads "Stopped after 5s" (or "Stopped thinking" without a duration) or "Couldn't finish thinking"complete, reads "Thought for 9s" (or "Thought for a few seconds" without a duration) and never collapses on its owncollapseDelay: milliseconds before the automatic collapse; Infinity keeps the trace openautoExpand: set it to false to keep the trace collapsed while it streamsReasoning.Loader: takes Loader props, such as another variant, or your own indicator as childrenReasoning.Label: pass a function to replace the text for a status and return defaultChildren for the resthidden="until-found", so find in page can open itSee Reasoning with AI SDK to drive status from the AI SDK or from your own stream.
ChainOfThought is now an ordered list of agent steps, shown inside Reasoning. The disclosure moved to Reasoning, and each list takes its status from the enclosing Reasoning.
import {ChainOfThought, Reasoning} from "@heroui-pro/react";
<Reasoning status={status}>
<Reasoning.Trigger />
<Reasoning.Content>
<ChainOfThought>
<ChainOfThought.Step status="complete">
<ChainOfThought.StepTitle>Read layout</ChainOfThought.StepTitle>
<ChainOfThought.StepDescription>Read app/layout.tsx</ChainOfThought.StepDescription>
</ChainOfThought.Step>
</ChainOfThought>
</Reasoning.Content>
</Reasoning>;complete, active, pending, or error; a step without one shows a neutral dotReasoning is stopped or error, the active step shows as interrupted and pending steps are hiddenChainOfThought.StepTitle and ChainOfThought.StepDescriptionindicator on ChainOfThought.Step replaces the complete check, or draws the whole mark with a functionstatusLabel replaces the hidden step status text and can return a node, such as a translated messageThe beta API still renders but is deprecated. See Deprecated API.
Loader shows that something is loading or that an AI is working. It has 14 variants: ring, classic, dots, pulse, scan, grid, shuffle, wave, sparkle, atom, morph, helix, twist, and infinity.
import {Loader} from "@heroui-pro/react";
<Loader label="Thinking" variant="sparkle" />;sm (16px), md (20px), and lg (24px). HeroUI Spinner sm (16px) matches Loader sm, and Spinner md (24px) matches Loader lgcolor takes the same values as Spinner: accent (default), current, success, warning, and dangerLoader.Indicator and Loader.Label to put custom content, such as TextShimmer, in the label. Loader.Indicator children replace the drawing with your own SVG contentrole="status", renders hidden "Loading" text when there is no label, drops it for a Loader.Label placed anywhere inside, and stops on a still frame under prefers-reduced-motion: reduceChatLoader.Dots, ChatLoader.Pulse, and ChatLoader.Spinner are deprecated in favor of Loader with the dots, pulse, or ring variant. Keep the same size, except ChatLoader.Spinner md (24px) becomes lg; Loader has no 32px size for Spinner lg. ChatLoader.Dots was muted, so pass className="text-muted" to keep it. Loader's label is visible, so pass aria-label for a hidden name.
ModelSelector picks a model and its effort level for the next message. Pass your own models; the component ships no catalog or logos.
import {ModelSelector} from "@heroui-pro/react";
<ModelSelector defaultValue="claude-opus-5-5" models={models}>
<ModelSelector.Trigger />
<ModelSelector.Popover>
<ModelSelector.List>
<ModelSelector.Group title="Anthropic">
<ModelSelector.Item model={opus} />
</ModelSelector.Group>
</ModelSelector.List>
<ModelSelector.Effort />
<ModelSelector.Detail />
</ModelSelector.Popover>
</ModelSelector>;models by providerefforts, and set tone to "max" or "ultra" on the levels that use more of the usage limit. Switching to a model without the current level uses its defaultEffort, and switching back restores the level the user pickedModelSelector.Search to filter models by name or provider; without it the list has no searchModelSelector.Detail a function to change the card contentModelSelector.Effort children replace the "Faster" and "Smarter" row, and {null} removes itModelSelector.Item children show after the model name, such as a pricelabels replaces the visible copyPromptInput toolbar; in the compact and inline layouts, pass size="sm" to the triggerApprovalCard asks the user one question at a time before an agent acts. onSubmit receives {answers, skipped}.
import {ApprovalCard} from "@heroui-pro/react";
<ApprovalCard questions={questions} onDismiss={onDismiss} onSubmit={onSubmit} />;selectionMode, allow a typed answer with allowCustom, and hide Skip with allowSkip={false}options or allowCustom asks for approval before one action; Continue approves and Skip declinesask_user tool and pass the result to addToolOutput, or answer a needsApproval tool with addToolApprovalResponseonDismiss is set. With children, it renders only the parts you place; Steps, StepCount, and SkippedCount render for any question count and set [data-single], [data-last-step], and [data-empty] for CSSApprovalCard.Steps is placed, and without ApprovalCard.Title the card and options take the question's title as their aria-labelmaxVisible on ApprovalCard.Steps sets the dot window (default 7), and a function child receives each question's index and isAnsweredrender to the root to render your own div, like HeroUI CarduseChatConversation hook returns hasOverflow, isAtBottom, and scrollToBottom. Call scrollToBottom to bring back a reader who scrolled up, for example when they send a messagevariant="card" on ChatMessage.Assistant to place a whole turn on a Card surfaceChatMessageActions.Action part; ChatMessage.Actions is an alias of ChatMessageActionsmaxVisible on ChatSources.List to show the first sources and a "+N more" chip. Control it with showAll, defaultShowAll, and onShowAllChange, and replace its text with renderTogglehref is set. Pill and card items get hover, press, and focus styles, and the new PromptSuggestion.ItemHeader groups the title and descriptionEvery Agenda event in view and the time grid are now tab stops. The time grid scrolls with the arrow keys, Page Up/Down, Home, and End.
snapMinutes or to the previous or next day in view, and move a month event by a day or a weeksnapMinutesdefaultEventDuration at the first slot in viewMoves stay on the days and hours in view, and read-only events can't be moved or resized. Left and right are mirrored in right-to-left locales.
aria-label on Agenda.NavButton, and the all-day toggle with expandLabel and collapseLabel on Agenda.AllDaySection.color use the accent foreground for their text, so they stay readable in every theme.text-danger-foreground, and transitions respect reduced motion.ChatConversation.ScrollButton runs your onPress as well as the scroll, and when it hides after a keyboard press, focus moves to the conversation. The scroll button gets a hover and pressed fill. ChatConversation.ScrollAnchor is deprecated and no longer needed.ChatLoader.Spinner is announced once, and ChatLoader.SkeletonBlock keeps its className outside ChatLoader.Skeleton. Skeletons get a square avatar in the Brutalism theme.ChatSources.List counts sources inside fragments. The link chip shows the HeroUI focus ring.ChatTool disables its trigger, so it leaves the tab order and gets disabled styles. The keyboard focus ring is drawn on the card, so the card no longer clips it.width stays resizable; width is the initial width unless onColumnResize is set. New defaultWidth makes the initial-only behavior explicit.aria-labelledby, aria-describedby, aria-details, and id, so a grid can take its name from a visible heading. aria-label is now optional.EmojiPicker.SkinToneTrigger renders a single button instead of a button nested in a button. Inside a SearchField, it stays in the tab order and no longer clears the search query. The selected skin tone is exposed with aria-pressed.aria-expanded.:focus-visible:not([data-focused]) selector instead of :focus-visible:not(:focus), which never matched.zoomInLabel and zoomOutLabel on Map.ZoomControl, label on Map.CompassControl, Map.LocateControl, and Map.FullscreenControl, and closeButtonLabel on Map.Popup and Map.MarkerPopup.Map.MarkerPopup is a focusable role="button" with aria-expanded, and Enter or Space toggles the popup. Markers accept aria-label.styles, the map follows data-theme or a dark/light class on <html>, and falls back to the system color scheme when the document theme is removed.isInvalid, validationErrors, and validationDetails show FieldError and apply error styling. The description and error are linked to the select with aria-describedby.PromptInput.Queue.Item.Handle and press the arrow keys to move a queue row (Up/Down, or Left/Right when axis="x", flipped in right-to-left layouts). The handle has a default aria-label ("Reorder queue item"), and your onKeyDown or onPointerDown can cancel its action with preventDefault().data-separator from react-resizable-panels v4, so they show on both sides of the line. The handle type shows its pill hover and drag states.textbox named by aria-label (default "Rich text editor"), aria-labelledby, and aria-describedby, and it gets aria-readonly or aria-disabled.aria-activedescendant, and accepts aria-label and emptyContent. The slash menu stays above and usable inside overlays.aria-current="page" is set on the item row. When the sidebar is collapsed to icons, the row is the tooltip trigger, and the focused row stays mounted.Reasoning, Loader, and prompt suggestion links. The CRM template renders its date range picker after hydration and fixes responsive layout issues.@heroui/react and @heroui/styles use 3.2.8, with peer minimums of >=3.2.8.tailwind-variants bumped to 4.0.2; peer minimum bumped to >=4.0.2.@heroui/react 3.2.8, tailwind-variants 4.0.2, and Next.js 16.4.6.- "@heroui/react": ">=3.2.7"
- "@heroui/styles": ">=3.2.7"
- "tailwind-variants": ">=3.3.1"
+ "@heroui/react": ">=3.2.8"
+ "@heroui/styles": ">=3.2.8"
+ "tailwind-variants": ">=4.0.2"Update the packages together:
npm install @heroui/react@latest @heroui/styles@latest tailwind-variants@latestChatSource renders a span instead of a div, so it can sit inside a paragraph. ChatSource.Trigger no longer wraps the chip in its own span. .chat-source__trigger and .chat-source__trigger-link are now on the same element, and className, ref, and native props go to the chip. Move custom styles from the old wrapper to the chip.
The chip is now 24px tall instead of 20px, has a border, uses 16px icons, and no longer caps its width at 128px.
The beta API still renders, but its markup changed:
ol and li instead of div.Reasoning, so the root, trigger, and panel use .reasoning, .reasoning__trigger, and .reasoning__content. .chain-of-thought moves to the step list and replaces .chain-of-thought__steps, and .chain-of-thought__step-indicator is now the whole status lane..chain-of-thought--streaming, .chain-of-thought--complete, .chain-of-thought__step-header, .chain-of-thought__step-label, and .chain-of-thought__step-content are gone. chainOfThoughtVariants drops the status variant and the trigger, content, steps, stepHeader, stepLabel, and stepContent slots.ChainOfThought.Trigger no longer takes HeroUI Button props.Before:
<ChainOfThought isStreaming={isStreaming}>
<ChainOfThought.Trigger>Explored 2 files</ChainOfThought.Trigger>
<ChainOfThought.Content>
<ChainOfThought.Steps>
<ChainOfThought.Step label="Read layout">Read app/layout.tsx</ChainOfThought.Step>
</ChainOfThought.Steps>
</ChainOfThought.Content>
</ChainOfThought>After:
<Reasoning status={isStreaming ? "streaming" : "complete"}>
<Reasoning.Trigger />
<Reasoning.Content>
<ChainOfThought>
<ChainOfThought.Step>
<ChainOfThought.StepTitle>Read layout</ChainOfThought.StepTitle>
<ChainOfThought.StepDescription>Read app/layout.tsx</ChainOfThought.StepDescription>
</ChainOfThought.Step>
</ChainOfThought>
</Reasoning.Content>
</Reasoning>To keep a custom trigger label, pass a function to Reasoning.Label:
<Reasoning.Trigger>
<Reasoning.Loader />
<Reasoning.Label>
{({isStreaming}) => (isStreaming ? <TextShimmer>Exploring</TextShimmer> : "Explored 2 files")}
</Reasoning.Label>
<Reasoning.Indicator />
</Reasoning.Trigger>A deprecated prop, or a direct ChainOfThought.Trigger, ChainOfThought.Content, or ChainOfThought.Steps child, renders a Reasoning in place of the list, as in beta. The other beta Disclosure props, such as id and a function className or style, go to that Reasoning. Its status and statusLabel then also reach the step lists inside, unless a list sets its own.
The beta API is detected only on direct children. If your component wraps ChainOfThought.Trigger or ChainOfThought.Content, set a deprecated root prop such as defaultExpanded={false}, or move to Reasoning.
Card items now render as a button, or as an a when href is set. Do not put interactive content such as buttons or links inside them. Group the title and description in the new PromptSuggestion.ItemHeader, as the docs do:
<PromptSuggestion.Item>
- <PromptSuggestion.ItemTitle>Summarize this document</PromptSuggestion.ItemTitle>
- <PromptSuggestion.ItemDescription>Create a concise summary.</PromptSuggestion.ItemDescription>
+ <PromptSuggestion.ItemHeader>
+ <PromptSuggestion.ItemTitle>Summarize this document</PromptSuggestion.ItemTitle>
+ <PromptSuggestion.ItemDescription>Create a concise summary.</PromptSuggestion.ItemDescription>
+ </PromptSuggestion.ItemHeader>
</PromptSuggestion.Item>ChatConversationVariants, ChatMessageActionsVariants, ChatSourceVariants, and ChatSourcesVariants are now the variant props (VariantProps<typeof ...>) instead of the variants function type. Where you need the function type, use typeof chatSourceVariants and so on.
These APIs still work and will be removed in a future major release.
| API | Use instead |
|---|---|
ChainOfThought isStreaming | status="streaming" on Reasoning |
ChainOfThought defaultExpanded, isDisabled, isExpanded, onExpandedChange | The same props on Reasoning |
ChainOfThought.Trigger, ChainOfThought.Content | Reasoning.Trigger, Reasoning.Content |
ChainOfThought.Steps | ChainOfThought itself; render ChainOfThought.Step directly inside it |
ChainOfThought.Step label | A ChainOfThought.StepTitle child |
ChatConversation.ScrollAnchor | Remove it; use scrollToBottom from useChatConversation |
ChatLoader.Dots, ChatLoader.Pulse, ChatLoader.Spinner | Loader with variant="dots", "pulse", or "ring" |
ChatSource.Trigger label | Pass the content as children |
npx heroui-proSelect Update HeroUI Pro React to x.x.x (latest) from the interactive menu.