AI Autocomplete - React Component | Kokonut UI
AI Autocomplete
A text box that suggests how your sentence ends in grey after the caret. Tab takes it all, the right arrow takes one word, and typing the same letters keeps it.
Installation
AI Autocomplete is a free, open-source React component in the Kokonut UI AI collection. Add it with the shadcn CLI, which copies the source into components/kokonutui/ai-autocomplete.tsx, so the code is yours to change.
Copy Text
npx shadcn@latest add @kokonutui/ai-autocomplete
Usage
Copy Text
import AIAutocompleteDemo from "@/components/kokonutui/ai-autocomplete";
export default function Example() {
return <AIAutocompleteDemo />;
}
Props
className
string
Extra classes for the root element.
Dependencies
| Needs | Version | Comes from |
|---|---|---|
cn from lib/utils.ts |
shadcn init | |
| React | 19 |
Your app |
| Tailwind CSS | 4 |
Your app |
No provider, font or global CSS to set up: the file works as soon as it lands.