Skip to Content
UI Kit
Components (172)

Code Block

Reusable Clean-style UI component built on Base UI and Tailwind CSS v4.

Open preview
Loading Code Block…

Usage

import { CodeBlock } from "ui-kit/components/code-block";

Props

PropTypeDefaultDescription
code*string——
languagestring——
filenamestring——
showLineNumbersbooleanfalse—
highlightLinesnumber[]——
wrapbooleanfalse—
maxHeightnumber | string——
copyablebooleantrue—
onCopy(code: string) => void——
classNamestring——
styleCSSProperties——

On this page