Inline Suggestion

AI Suggestion
const greet = (name: string) => `Hello, ${name}!`;
About this piece

Inline Suggestion

AI Suggestion caption above a code line with a solid prefix, italic muted ghost text, and a blinking caret.

Usage

The import and the props worth knowing about, in one place.

import { Editor8 } from "@/components/beste/piece/editor8";

<Editor8
  prefix="const greet = (name: string) => `Hello, "
  ghost="${name}!`;"
/>

More Editor pieces

View all Editor
1// TODO migrate to server components
2// FIXME handles null state poorly
3// NOTE revisit once design lock lands

TODO Comment

Italic comment lines with colored TODO, FIXME, NOTE, or HACK tags.

return greet(name);
Ayşe

Collab Cursor

Code line with a teammate's blinking caret tinted by tone and a name tag floating above it.

:fi
  • :fire:
  • :finish_line:
  • :first_place:
  • :fish:

Emoji Picker

Inline :shortcode typing with an autocomplete dropdown showing emoji previews.

const total = items.reduce(sum, i) => sum + i.price);
Expected 2 arguments, but got 1.ts(2554)

Problem Marker

Code line with a rose wavy underline on the offending token above an alert card with message and source code.

const name = user.prfile.name;Property 'prfile' does not exist on type 'User'.

Error Lens

Code line where the offending token gets a colored wavy underline and the diagnostic message renders inline beside it.

--primary: #f43f5e;
--accent: #8b5cf6;
--surface: #0ea5e9;

Color Preview

CSS lines with inline color swatch squares next to each hex value.