Browse components
Iridescence
An oil-slick film of flowing interference colors that swirls around the cursor.
Iridescence
Installation
npx shadcn@latest add @glint-ui/iridescenceFirst time using @glint-ui? Add the registry to components.json once, or install by URL: npx shadcn@latest add https://glint-ui-seven.vercel.app/r/iridescence.json
Usage
import { Iridescence } from "@/components/ui/iridescence";
<div className="relative h-96">
<Iridescence coverage={0.5} />
</div>Props
| Prop | Type | Default | Description |
|---|---|---|---|
| tint | string | "#ffffff" | Multiplies the film colors. |
| speed | number | 1 | Flow speed. |
| scale | number | 1 | Pattern zoom. |
| coverage | number | 0.5 | Colored film vs. dark oil. |
| mouseStrength | number | 1 | Cursor swirl strength. |
| className | string | — | Extra classes for the root element. |