Browse components
Threads
A bundle of thin glowing threads twisting like strings in the wind, bending toward the cursor.
Threads
Installation
npx shadcn@latest add @glint-ui/threadsFirst 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/threads.json
Usage
import { Threads } from "@/components/ui/threads";
<div className="relative h-96">
<Threads count={32} color="#22d3ee" accentColor="#c084fc" />
</div>Props
| Prop | Type | Default | Description |
|---|---|---|---|
| count | number | 32 | Number of threads. |
| color | string | "#22d3ee" | Color of the first thread. |
| accentColor | string | "#c084fc" | Color of the last thread. |
| amplitude | number | 1 | Wave height multiplier. |
| speed | number | 1 | Wind speed multiplier. |
| attraction | number | 1 | Pull toward the cursor. |
| thickness | number | 1 | Stroke width in px. |
| className | string | — | Extra classes for the root element. |