Code line with a lightbulb quick-fix tile and a dropdown of fix options. Preferred fix gets an amber tag.
const value = user.prfile.name;Requires shadcn/ui initialized. Run npx shadcn@latest init if you haven't.
import { Editor40 } from "@/components/beste/piece/editor40";
<Editor40
line="const value = user.prfile.name;"
actions={[
{
"label": "Rename to 'profile'",
"preferred": true
},
{
"label": "Add missing property 'prfile'"
},
{
"label": "Disable rule for this line"
}
]}
/>import { greet } from './greet';const user = { name: 'Ayşe' };const msg = greet(user.name);console.log(msg);
Code lines with colored gutter stripes showing added (emerald), modified (sky), and removed (rose) lines.
const greet = (name: string) => `Hello, ${name}!`;AI Suggestion caption above a code line with a solid prefix, italic muted ghost text, and a blinking caret.
1// TODO migrate to server components2// FIXME handles null state poorly3// NOTE revisit once design lock lands
Italic comment lines with colored TODO, FIXME, NOTE, or HACK tags.
Code line with a teammate's blinking caret tinted by tone and a name tag floating above it.
const users = load();for (const user of users) {12×render(user);}
Gutter with rose breakpoint dots, an amber-highlighted current line, and a hit-count chip.
Autocomplete popup with a blinking caret up top and a dropdown listing kind-colored tiles, names, and type signatures.