Browse components
Night Fold
A dark, moody veil of slowly folding noise with a soft color tint and film grain. WebGL.
Night Fold
Installation
npx shadcn@latest add @glint-ui/night-foldFirst time using @glint-ui? Add the registry to components.json once, or install by URL: npx shadcn@latest add https://glintui.vercel.app/r/night-fold.json
Usage
import { NightFold } from "@/components/ui/night-fold";
<div className="relative h-96">
<NightFold color="#7c5cff" />
</div>Props
| Prop | Type | Default | Description |
|---|---|---|---|
| color | string | "#7c5cff" | Tint of the veil folds. |
| speed | number | 1 | Flow speed multiplier. |
| scale | number | 1 | Size of the folds. |
| intensity | number | 1 | Brightness of the folds. |
| grain | number | 0.05 | Film grain amount. |
| className | string | — | Extra classes for the root element. |