Skip to Content

Suggest Field

AI autocomplete textarea with inline ghost text: a suggestion follows the typing, Tab accepts and Esc dismisses, and a Suggest button turns into Accept beside Dismiss. The caller supplies the suggestion.

View as Markdown
pnpm dlx shadcn add @01orbital/suggest-field

Usage

import { SuggestField } from "@/components/chat/suggest-field"

API reference

A text box that offers an AI continuation as faint text after what the person typed. Tab takes the suggestion, Esc drops it, and a button asks for one.

Prop

Type

Dependencies

npm: cn. The CLI installs them for you. cn merges Tailwind class names, in place of clsx and tailwind-merge.

Registry pieces it installs with it: