Glass
glass surface with interactive ripple and dynamic cursor effects.
Loading...
Installation
npx shadcn@latest add @scrollxui/glass Usage
import { Glass } from '@/components/ui/glass';<Glass
width={200}
height={200}
borderRadius={16}
tintOpacity={0.15}
blur={4}
ripple
followMouse
className='m-4'
onClick={() => console.log('Glass clicked!')}
>
<div className='flex items-center justify-center h-full w-full text-white font-bold'>
Interactive Surface
</div>
</Glass>Examples
Follow Mouse
Loading...
Ripple
Loading...
API Reference
Glass
glass surface with interactive ripple and dynamic cursor effects.