Code template with dashed-outline tab stops. Active placeholder tints primary, others stay muted.
Requires shadcn/ui initialized. Run npx shadcn@latest init if you haven't.
import { Editor15 } from "@/components/beste/piece/editor15";
<Editor15
prefix="for (let "
placeholders={[
{
"index": 1,
"label": "i",
"active": true
},
{
"index": 2,
"label": "arr"
}
]}
middle=" = 0; $1 < "
suffix=".length; $1++) {}"
/>Row of filename tabs with active styling. Dirty tabs show a sky dot in place of the close button.
1function·greet(name)·{2→return·`Hello,·${name}!`;3}
Code lines with muted middle-dots for spaces and → glyphs for tabs, revealing indentation.
Start by adding your first block.
Centered editor placeholder with a soft icon tile, headline, hint line, and a recolorable call-to-action pill.
Code line with a teammate's blinking caret tinted by tone and a name tag floating above it.
// hidden lines…
const ready = useReady();
if (!ready) return null;Scope breadcrumb pinned above a code snippet, showing the current class, method, and block.
Document outline with colored kind tiles for class, function, method, and prop. Depth-indented with an active row.