Dev Design Library

Code block

Present code with legible hierarchy and copy access.

Code block preview
Library
Arc Library
Framework
React
Type
ui
License
MIT
Dependencies
lucide-react, motion
Install
npx shadcn@latest add https://uiarc.dev/r/code-block.json
Files
  • registry/components/code-block/code-block.tsx
  • registry/components/code-block/code-block.module.css
  • registry/components/copy-button/copy-button.tsx
  • registry/components/copy-button/copy-button.module.css
  • lib/use-copy-feedback.ts
  • registry/motion-tokens.ts
  • lib/motion-tokens.ts
Source
https://github.com/kuratlielia/arc-library

Categories

More from Arc Library