export function Button({ label }) {return <button>{label}</button>;return <button className="btn">{label}</button>;}
Unified diff with tinted add and remove rows, line numbers, and +/− prefix column.
The import and the props worth knowing about, in one place.
import { Editor4 } from "@/components/beste/piece/editor4";
<Editor4
surface="card"
bordered={true}
inverted={false}
filename="button.tsx"
lines={[
{
"kind": "context",
"line": 12,
"content": "export function Button({ label }) {"
},
{
"kind": "remove",
"line": 13,
"content": " return <button>{label}</button>;"
},
{
"kind": "add",
"content": " return <button className=\"btn\">{label}</button>;"
},
{
"kind": "context",
"line": 14,
"content": "}"
}
]}
/>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.
1function·greet(name)·{2→return·`Hello,·${name}!`;3}
Code lines with muted middle-dots for spaces and → glyphs for tabs, revealing indentation.
--primary: #f43f5e;--accent: #8b5cf6;--surface: #0ea5e9;
CSS lines with inline color swatch squares next to each hex value.
Regex input with slashes, violet flags, and a tabular match-count pill on the right.