Dev Design Library

Code Block

Switch files with a sliding underline and copy with one click.

Code Block preview
Library
UI Lab
Framework
React
Type
component
License
MIT
Install
npx shadcn@latest add https://lab.xevrion.dev/r/code-block.json
Files
  • src/lab/components/code-block.tsx
  • src/lib/use-reduced-motion.ts
  • src/lib/cn.ts
Source
https://github.com/xevrion/ui-lab

Categories

More from UI Lab