Gutter with rose breakpoint dots, an amber-highlighted current line, and a hit-count chip.
const users = load();for (const user of users) {12×render(user);}
Requires shadcn/ui initialized. Run npx shadcn@latest init if you haven't.
import { Editor41 } from "@/components/beste/piece/editor41";
<Editor41
lines={[
{
"line": 40,
"code": "const users = load();"
},
{
"line": 41,
"code": "for (const user of users) {",
"breakpoint": true,
"hits": 12
},
{
"line": 42,
"code": " render(user);",
"current": true
},
{
"line": 43,
"code": "}"
}
]}
/>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 value = user.prfile.name;Code line with a lightbulb quick-fix tile and a dropdown of fix options. Preferred fix gets an amber tag.
Code line with a teammate's blinking caret tinted by tone and a name tag floating above it.
Code line with a rose wavy underline on the offending token above an alert card with message and source code.
Text with a primary-tinted highlight and a floating dark pill showing character and word counts.
const name = 'Ayşe';const role = 'design';const team = 'core';
Stacked code lines each with a primary-tinted blinking caret at the same column plus a header count.