Loading component…
Loading component…
A chat composer seen like a selection in a design tool – tilted back, with a blue frame, spacing numbers and a red guide walking through its rows
To reuse this local React demo, copy all files from the Code tab into the same folder, then import InspectComposer from ./inspect-composer.
import { InspectComposer } from "@/components/ui/inspect-composer";
export function Hero() {
return (
<section className="relative">
<h1>UI for AI agents</h1>
<InspectComposer className="absolute left-0 top-24" />
</section>
);
}| Name | Type | Default | Description |
|---|---|---|---|
| message | string | "Ask the agents to ship the new pricing page" | The message in the composer |
| above | string \| null | "Summarize the pricing research for the team" | The message in the composer faded out above it – null leaves it out |
| mode | string | "Auto" | The mode on the approval button |
| playing | boolean | true | Walks the selection through the rows – false holds it on the message |
| hold | number | 1600 | How long the selection stays on a row, in ms |
| delay | number | 600 | Wait before the first selection, in ms – e.g. until the section around it has come in |
| mirror | boolean | true | Tilted towards the left and fading out to the left, the edge marks on the right – as on the left of a layout; false turns it the other way |
| flat | boolean | false | No tilt |
| className | string | Extra class on the root |
Fixed size, about 400 × 330px with its fades – scale it with zoom or a transform for smaller screens
Dark mode built in: switches when an ancestor (usually <html>) has the class dark or data-theme="dark"