Regex Input

Regex input with slashes, violet flags, and a tabular match-count pill on the right.

/\b\w+@\w+\.com\b/gi
12

Requires shadcn/ui initialized. Run npx shadcn@latest init if you haven't.

Import & use
import { Editor21 } from "@/components/beste/piece/editor21";

<Editor21
  pattern="\b\w+@\w+\.com\b"
  flags="gi"
  matches={12}
/>

More Editor pieces

View all Editor
onboarding3/12
activation

Two-row editor find bar with match counter, case/regex toggles, prev/next, replace, and replace-all.

1function·greet(name)·{
2return·`Hello,·${name}!`;
3}

Code lines with muted middle-dots for spaces and → glyphs for tabs, revealing indentation.

button.tsx
export function Button({ label }) {
return <button>{label}</button>;
return <button className="btn">{label}</button>;
}

Diff View

editor4

Unified diff with tinted add and remove rows, line numbers, and +/− prefix column.

The implmentation ships on Friday.
  • implementation
  • implements
  • implemented

Spell Check

editor39

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) {
2 items.forEach(draw);
3}
Matching bracket on line 3

Three-line snippet with the matching opening and closing brackets highlighted in primary.