Components (172)
Code Block
Reusable Clean-style UI component built on Base UI and Tailwind CSS v4.
Loading Code Block…
Usage
import { CodeBlock } from "ui-kit/components/code-block";Props
| Prop | Type | Default | Description |
|---|---|---|---|
code* | string | — | — |
language | string | — | — |
filename | string | — | — |
showLineNumbers | boolean | false | — |
highlightLines | number[] | — | — |
wrap | boolean | false | — |
maxHeight | number | string | — | — |
copyable | boolean | true | — |
onCopy | (code: string) => void | — | — |
className | string | — | — |
style | CSSProperties | — | — |