An assistant inside your product whose answers show their sources and queries.
Import it and pass your content. The props that matter most are listed next.
"use client";
import * as React from "react";
import { AssistantPanel, type AssistantMessage } from "@/components/ui/notchset/blocks/assistant-panel";
const scopes = [
{ value: "7d", label: "7D" },
{ value: "30d", label: "30D" },
];
export function AskPanel() {
const [scope, setScope] = React.useState("7d");
const messages: AssistantMessage[] = [
{ id: "q", role: "user", text: "How much did the migration save?" },
{
id: "a",
role: "assistant",
status: "done",
source: { before: "CHECKED", count: "31,406", after: "RUNS" },
parts: ["It saved ", { value: "$40.83", source: "runs × (0.0020 − 0.0007)", rows: "31,406 RUNS" }, " this week."],
},
];
return <AssistantPanel title="Ask Relay" scopes={scopes} scope={scope} onScopeChange={setScope} messages={messages} />;
}title / subtitle–
stringThe header: what it is and what it answers from.
scopes / scope / onScopeChange–
{ value, label }[] / stringThe time scope (a Segmented Control). On change, pass the answers' new values: every number rolls to them.
messages–
({ id, role: 'user', text } | { id, role: 'assistant', status, source?, query?, parts })[]parts mixes text and data tokens ({ value, source, rows }); grow it as the answer streams.
scopeNote–
stringUnder each finished answer: what the scope is and that it updates.
followUps–
string[]Chips above the composer; disabled while an answer streams.
onAsk / onNewThread–
(text) => void / () => voidAsking (send, Enter or a follow-up) and starting over.
placeholder / inputLabel–
stringThe composer's hint and accessible name.
AssistantPaneldata-slot="assistant-panel"
The block: header with scope, the thread, follow-ups and the composer.
components/ui/notchset/blocks/assistant-panel.tsx
This component is included with Pro.
Try the live preview above. Get Pro to install the source.
pnpm dlx shadcn@latest add @beautiful-ui-pro/assistant-panelNeeds your registry key. Your components.json style picks the Base UI or Radix build: radix-*, new-york and default get Radix, base-* gets Base UI.
The CLI adds the styles to the CSS file named in components.json (tailwind.css). Check that it points at your global stylesheet, that the project uses Tailwind CSS v4, and that the file is imported in your root layout. Installed by hand: paste styles.css into that file.
Give your coding assistant the Markdown guide instead of screenshots.
https://beautiful-ui.dev/api/mcp (setup)v1.0.0 · 2026-10-03
First release
Pro is in early access.