Dev Design Library

Code Block

Syntax-highlighted code (lazy Shiki, plain-pre fallback) with a language label and a copy-to-clipboard control.

Code Block preview
Library
LocalMode
Framework
React
Type
component
License
MIT
Dependencies
lucide-react, shiki
Install
npx shadcn add @localmode/ui/ui/conversation/code-block
Files
  • apps/ui/registry/localmode/conversation/code-block/code-block.tsx
  • apps/ui/registry/localmode/lib/utils.ts
  • apps/ui/registry/localmode/ui/button.tsx
Source
https://github.com/LocalMode-AI/LocalMode

Categories

More from LocalMode