Skip to Content
Kokonut UI

AI-27AIUpdated, November 16, 2026

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.

Install with
no extra packages

PROSlash Command Menu and more like it are in Kokonut UI Pro

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.

npx shadcn@latest add @kokonutui/ai-autocomplete

Usage

import AIAutocompleteDemo from "@/components/kokonutui/ai-autocomplete";

export default function Example() {
  return <AIAutocompleteDemo />;
}

Props

className
string

Extra classes for the root element.

Dependencies

NeedsVersionComes from
cn from lib/utils.tsshadcn init
React19Your app
Tailwind CSS4Your app

No provider, font or global CSS to set up: the file works as soon as it lands.