Browse components
Silk
Flowing silk fabric with soft folds, a satin sheen and fine film grain. WebGL.
Silk
Installation
npx shadcn@latest add @glint-ui/silkFirst 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/silk.json
Usage
import { Silk } from "@/components/ui/silk";
<div className="relative h-96">
<Silk color="#7c68ee" />
</div>Props
| Prop | Type | Default | Description |
|---|---|---|---|
| color | string | "#7c68ee" | Fabric color. |
| speed | number | 1 | Flow speed multiplier. |
| scale | number | 1 | Fold zoom. |
| noise | number | 0.4 | Film grain amount. |
| rotation | number | 0 | Fold direction in degrees. |
| className | string | — | Extra classes for the root element. |