R 8R 12
4
896 × 54
ComposeUI
ComponentsChartsBlocksDocs

Let's have coffee?

R 16
Subham avatar
Want to work together? Just want to chat?
Subham avatar
Check out my portfolio: subham12r.dev
Subham avatar
Or grab 15 mins on my calendar:
Coffee chat
Portfoliosubham12r.dev
Mail
hello@subham12r.dev
Socials
X / Twitter·GitHub·LinkedIn
Explore
Components·Charts·Blocks·Docs

Designed and built by Subham

ComposeUIComposeUI
© 2026 ComposeUI·React + Tailwind v4
Type to search sources & files

Prompt Bar

Fill
Stroke
Color

Prompt Bar

ComposerNew

Multi-source @mention prompt bar with sculpted connector icons and concentric model selector.

"use client"; import { useState } from "react";import { PromptBar } from "@/components/compose/prompt-bar"; export function ComposerExample() {  const [model, setModel] = useState("compose-pro");   return (    <PromptBar      model={model}      onModelChange={setModel}      shape="rounded"      onSubmit={(prompt, sources) => {        console.log("Submitted:", { prompt, sources, model });      }}    />  );}

Install

Add it with the ComposeUI CLI, or copy the source manually.

$ bunx --bun compose-ui-cli add prompt-bar

API Reference

Prop
Type
Default
model
"compose-1" | "compose-pro" | "compose-fast"

Currently selected inference profile shown in the dropdown pill.

"compose-pro"
shape
"rounded" | "pill"

Corner geometry of the outer composer shell.

"rounded"
sources
SourceConnector[]

Triggerable @mention tools, files, and integrations displayed above the bar.

DEFAULT_SOURCES
onSubmit
(prompt: string, attached: string[]) => void

Invoked when the user submits via Enter or the primary send button.

—

Related components

#
R 12
ThinkingPlanning the motion schedule...
Write 204 linesSegmentedTabs.tsx
Rebuild and verifynpm run lint
Read imagedesign-spec.png
- pill.style.left = `${btn.offsetLeft}px`;
+ pill.style.transform = `translate3d(${btn.offsetLeft}px, 0, 0)`;
Tool Chips
R 12
  • Reading design briefs
  • Scanning token lists
  • Comparing bevel specs6 primitives
  • Writing the component report
Thinking
R 12

How many variants should we launch?

1/3
Approval Card

Updated December 2026

R 12
Previous

Blur Sweep Logos

R 12
Next

Loading State