Code Folding

12function renderChart(data) {
37}
About this piece

Code Folding

Expanded open line, a collapsed region button with chevron and line count, and the closing line.

Usage

The import and the props worth knowing about, in one place.

import { Editor38 } from "@/components/beste/piece/editor38";

<Editor38
  openLine="function renderChart(data) {"
  closeLine="}"
  collapsed={24}
  bordered={false}
/>

More Editor pieces

View all Editor
const greet = (name: string) => `Hello, ${name}!`;
const message = `Hello`;
const longer = `Shipping the biggest onboarding upgrade yet`;
const wrapped = items.map((i) => i.name).join(', ') + '!'
1function·greet(name)·{
2→return·`Hello,·${name}!`;
3}
const name = 'Hania';
const role = 'design';
const team = 'core';
greet.ts
export function greet(name: string) {
return `Hello, ${name}!`;
}
 
// Ship it
1// TODO migrate to server components
2// FIXME handles null state poorly
3// NOTE revisit once design lock lands