<section id="code-block" class="primitive-showcase group flex w-full scroll-mt-8 flex-col border-b border-dashed border-line px-8 py-10" style="animation:fade-up 600ms cubic-bezier(0.23,1,0.32,1) 240ms both"><div class="mb-3 flex items-start gap-2 sm:items-baseline"><span class="mt-0.5 font-mono text-[11px] text-ink-3 tabular-nums sm:mt-0">17</span><div class="min-w-0 sm:flex sm:items-baseline sm:gap-2"><h3 class="whitespace-nowrap text-[13px] font-semibold text-ink">Code Block</h3><p class="mt-0.5 text-[12.5px] text-ink-3 text-pretty sm:mt-0 sm:truncate">Agent-written code streaming in line by line.</p></div></div><div class="primitive-demo-surface relative flex items-center justify-center overflow-hidden rounded-window bg-canvas p-3 shadow-hairline" style="min-height:272px"><div class="w-full max-w-120 [&amp;&gt;*]:mx-auto"><div class="w-full max-w-95 overflow-hidden rounded-card bg-surface shadow-card"><div class="primitive-card-bar flex items-center justify-between border-b border-line"><span class="flex items-baseline gap-2"><span class="font-mono text-[12px] font-medium text-ink">churn.ts</span><span class="text-[11.5px] text-ink-3">TypeScript</span></span><button aria-label="Copy code" class="flex h-6 items-center gap-1 rounded-[6px] px-1.5 text-[11.5px]
            font-medium transition-colors duration-100 hover:bg-hover
            text-ink-3 hover:text-ink"><svg width="10" height="10" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><rect x="9" y="9" width="12" height="12" rx="2.5"></rect><path d="M5 15H4a2 2 0 0 1-2-2V4a2 2 0 0 1 2-2h9a2 2 0 0 1 2 2v1"></path></svg>Copy</button></div><pre class="min-h-[137px] bg-inset px-3 py-2.5 font-mono text-[11.5px] leading-[1.7]"><div class="flex" style="animation: 250ms cubic-bezier(0.23, 1, 0.32, 1) 0s 1 normal both running fade-up;"><span class="w-5 shrink-0 text-right text-[10.5px] leading-[1.86] text-ink-3/60 select-none">1</span><span class="pl-2.5 whitespace-pre"><span style="color: var(--accent-ink);">export async function </span><span style="color: var(--ink);">churnBatch</span><span style="color: var(--ink-3);">() {</span></span></div><div class="flex" style="animation: 250ms cubic-bezier(0.23, 1, 0.32, 1) 0s 1 normal both running fade-up;"><span class="w-5 shrink-0 text-right text-[10.5px] leading-[1.86] text-ink-3/60 select-none">2</span><span class="pl-2.5 whitespace-pre"><span style="color: var(--accent-ink);">  const </span><span style="color: var(--ink-2);">flavor = </span><span style="color: var(--accent-ink);">await </span><span style="color: var(--ink);">getFlavor</span><span style="color: var(--ink-3);">(</span><span style="color: var(--green);">"pistachio"</span><span style="color: var(--ink-3);">);</span></span></div><div class="flex" style="animation: 250ms cubic-bezier(0.23, 1, 0.32, 1) 0s 1 normal both running fade-up;"><span class="w-5 shrink-0 text-right text-[10.5px] leading-[1.86] text-ink-3/60 select-none">3</span><span class="pl-2.5 whitespace-pre"><span style="color: var(--accent-ink);">  const </span><span style="color: var(--ink-2);">base = </span><span style="color: var(--accent-ink);">await </span><span style="color: var(--ink-2);">dairy.</span><span style="color: var(--ink);">fetch</span><span style="color: var(--ink-3);">({ flavor });</span><span class="ml-0.5 inline-block h-3 w-[3px] translate-y-0.5 rounded-full bg-accent"></span></span></div></pre></div></div><div class="absolute top-3 right-3 flex gap-1 opacity-0 transition-opacity duration-150 group-hover:opacity-100 group-focus-within:opacity-100"><button aria-label="Copy code" class="flex size-7 items-center justify-center rounded-control bg-surface
              shadow-btn transition-colors duration-100 hover:bg-hover
              text-ink-3 hover:text-ink"><svg width="14" height="14" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><rect x="9" y="9" width="12" height="12" rx="2.5"></rect><path d="M5 15H4a2 2 0 0 1-2-2V4a2 2 0 0 1 2-2h9a2 2 0 0 1 2 2v1"></path></svg></button><button aria-label="View code" class="flex size-7 items-center justify-center rounded-control bg-surface text-ink-3 shadow-btn transition-colors duration-100 hover:bg-hover hover:text-ink"><svg width="14" height="14" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><path d="M16 18l6-6-6-6M8 6l-6 6 6 6"></path></svg></button></div></div></section>