Compositions
Core Primitives
Transitions
Typography
Customize
16
460
1
4
760
Installation
$ pnpm dlx shadcn@latest add @framecn/glass-code-block
Usage
import { GlassCodeBlock } from "@/components/framecn/glass-code-block";<GlassCodeBlock />API Reference
GlassCodeBlock
| Prop | Type | Default |
|---|---|---|
code | string | DEFAULT_CODE |
title | string | "hero.tsx" |
width | number | 760 |
height | number | 460 |
fontSize | number | 16 |
background | string | "#0a0a0a" |
glassColor | string | "rgba(10, 10, 10, 0.6)" |
staggerFrames | number | 4 |
showTrafficLights | boolean | true |
speed | number | 1 |
fps | number | 30 |
durationInFrames | number | 180 |
className | string | - |
Notes
Premium glass aesthetic
A frosted-glass code window with rim lighting and macOS-style traffic light controls. Great for premium landing pages.