AI Input II

AI Input II

A rounded, motion-driven AI chat input — springy attachment menu with inline image previews, toggle pills that expand their label when active, a model selector, and a send button ringed by a character-usage orbit.

Installation

▸ Run the following command

npx shadcn@latest add https://www.mellowui.com/r/orbit-composer.json

▸ Or install manually

  1. Install dependencies: pnpm add motion
  2. Copy the source from the Code tab above.
  3. Place it at components/mellow/orbit-composer.tsx
  4. Import and use.

API Reference

PropTypeDefaultDescription
modelsstring[]["orbit-2-pro", "orbit-2-flash", "orbit-2-lite"]Model ids shown in the selector dropdown.
defaultModelstringmodels[0]Initially selected model.
placeholderstring"Ask anything…"Placeholder text for the prompt textarea.
maxLengthnumber2000Character limit — usage is drawn as the ring around the send button.
disabledbooleanfalseDisables all input while a response is streaming.
onSubmit(message: OrbitMessage) => voidCalled on send with { text, model, attachments, webSearch, deepThink }.
classNamestringAdditional CSS classes.