AI Input

Animated React AI text input component with command parsing, inline hints, keyboard shortcuts, and submit actions built-in.

Open in v0~11.7 kB

Last updated: April 21, 2026

Installation

npx smoothui-cli add ai-input

Features

  • Supports commands and inline hints
  • Keyboard shortcuts and focus states
  • Clear/submit actions built-in
  • Smooth micro-interactions
  • Accessible and themable

Accessibility

Keyboard Interactions

KeyDescription
EscapeCloses the feedback textarea and returns to the dock
Cmd + EnterSubmits the feedback form

Screen Reader

  • The submit shortcut is visually indicated with <kbd> elements showing the key combination

Reduced Motion

This component respects the prefers-reduced-motion media query via useReducedMotion from Motion. When reduced motion is preferred, all morph, fade, and layout animations are disabled instantly.

On this page

Created by

Powered by

motion.dev
cva.style
Open source & free

Support SmoothUI

Help keep SmoothUI free and actively maintained. Every sponsor helps ship more components, blocks, and animation recipes.