Regex input with slashes, violet flags, and a tabular match-count pill on the right.
Requires shadcn/ui initialized. Run npx shadcn@latest init if you haven't.
import { Editor21 } from "@/components/beste/piece/editor21";
<Editor21
pattern="\b\w+@\w+\.com\b"
flags="gi"
matches={12}
/>Two-row editor find bar with match counter, case/regex toggles, prev/next, replace, and replace-all.
1function·greet(name)·{2→return·`Hello,·${name}!`;3}
Code lines with muted middle-dots for spaces and → glyphs for tabs, revealing indentation.
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.
Sentence with a rose wavy underline on a misspelling and a suggestions dropdown below.
--primary: #f43f5e;--accent: #8b5cf6;--surface: #0ea5e9;
CSS lines with inline color swatch squares next to each hex value.
1function render(items) {2items.forEach(draw);3}Matching bracket on line 3
Three-line snippet with the matching opening and closing brackets highlighted in primary.