Dev Design Library

Code Block

A syntax-highlighted code block with line numbers, per-line highlighting, a filename/language header, a copy button and a collapsible fade-out for long snippets.

Code Block preview
Library
ReactFrame
Framework
React
Type
component
License
MIT
Dependencies
clsx, motion, tailwind-merge
Install
npx shadcn@latest add https://reactframe.com/r/code-block.json
Files
  • registry/new-york/code-block/code-block.tsx
Source
https://github.com/AhmetLoca/reactframe-public

Categories

More from ReactFrame