Component packs › Muse › Ghost-text Suggest
A suggestion is written in after your caret; Tab takes it and underlines what was added, Esc strikes it out.
Ghost-text Suggest is an autocomplete from Muse, a component pack with 6 AI writing components: AI writing controls that show every change as an edit you can read and trace. Price: $2 for the whole pack.
Built with: mirror layer textarea, written-in ghost, pluggable suggest().
Code: React and Next.js (TypeScript), Vue 3, plain HTML/CSS/JS, Tailwind CSS v4 and Motion (motion.dev). No npm packages needed. Keyboard accessible, with a reduced-motion version, in dark and light.
| Prop | Type | Default | Description |
|---|---|---|---|
value | string | Starting text. | |
suggest | (text: string) => string | Promise<string> | a short built-in list | Returns a continuation for the text (or a promise of one). Default: a short built-in list. |
label | string | "Reply to Dana" | Field label. Default "Reply to Dana". |
placeholder | string | ||
delay | number | 600 | Pause before suggesting, in ms. Default 600. |
onAccept | (added: string, text: string) => void | ||
autoplay | number | false | Showcase mode: types, gets a suggestion and accepts it, every N ms while visible. |
readonly value: stringsetValue(text: string): voiddestroy(): voidimport GhostSuggest from './GhostSuggest';
<GhostSuggest />The Vue, HTML, Next.js, Tailwind and Motion versions take the same options.
Good for: AI writing UI.