byronwade/ui
Application UI

AI · Application UI

Code Block

Syntax-highlighted code surface with light/dark Shiki rendering, optional line numbers, and a copy-to-clipboard button (adapted from Vercel AI Elements).

@byronwade/foundation@byronwade/utils@byronwade/buttonshiki@phosphor-icons/react

Adapted from Vercel AI Elements , the original components, repurposed onto the byronwade/ui design system (semantic tokens, dark mode, small subtle refinements). © Vercel.

Feature showcase

Installation

Features

  • 1 example

    Default.

API

Dependencies

PackageKindDescription
@byronwade/foundationregistryInstalled through the byronwade/ui registry.
@byronwade/utilsregistryInstalled through the byronwade/ui registry.
@byronwade/buttonregistryInstalled through the byronwade/ui registry.
shikinpmInstalled from npm.
@phosphor-icons/reactnpmInstalled from npm.

Source and related

FilePath
Componentregistry/components/ai-code-block.tsx
Default examplecontent/examples/ai-code-block/default.tsx