const user = { name: 'Nils' };const msg = greet(user.name);console.log(msg);
Code lines with colored gutter stripes showing added (emerald), modified (sky), and removed (rose) lines.
The import and the props worth knowing about, in one place.
import { Editor30 } from "@/components/beste/piece/editor30";
<Editor30
lines={[
{
"line": 12,
"code": "const user = { name: 'Nils' };",
"kind": "added"
},
{
"line": 13,
"code": "const msg = greet(user.name);",
"kind": "modified"
},
{
"line": 14,
"code": "console.log(msg);",
"kind": "unchanged"
},
{
"line": 15,
"code": "",
"kind": "removed"
}
]}
bordered={false}
/>