UIInternal UI

AI Elements

CodeBlock

@randall-enterprises/ui/components/ai-elements/code-block

Shiki-highlighted code with container, header, filename, actions, and copy.

Props (3)

Inherits everything from HTML <div> props; HTML <span> props.

code *string
language *string
showLineNumbersboolean
import { Button } from "@randall-enterprises/ui/components/primitives/button";
Manual composition
example.tsx
const answer = 42;