Dev Design Library

Glass Code Block

Syntax-highlighted code in a glass window, with tabs, line numbers, highlighted lines and copy.

Glass Code Block preview
Library
Opaline
Framework
React
Type
ui
License
MIT
Dependencies
@hugeicons/core-free-icons, @hugeicons/react, shiki
Install
npx shadcn@latest add @opaline/theme @opaline/glass-code-block
Files
  • registry/opaline/ui/opaline/glass-code-block.tsx
  • registry/opaline/ui/opaline/liquid-glass.tsx
  • registry/opaline/lib/glass-refraction.ts
  • registry/opaline/hooks/use-active-indicator.ts
  • lib/utils.ts
Source
https://github.com/deepraj21/opaline

Categories

More from Opaline