Browse components
Ring Type
Text wrapped around a slowly spinning ring that speeds up, slows down or stops when hovered, with optional content in the middle.
Installation
npx shadcn@latest add @glint-ui/ring-typeFirst time using @glint-ui? Add the registry to components.json once, or install by URL: npx shadcn@latest add https://glintui.vercel.app/r/ring-type.json
Usage
import { RingType } from "@/components/ui/ring-type";
<RingType text="GLINT • MOTION • COMPONENTS • " onHover="speedUp">
<Logo />
</RingType>Props
| Prop | Type | Default | Description |
|---|---|---|---|
| text | string | "GLINT • MOTION • COMPONENTS • " | Text around the ring. Trailing separator keeps the loop seamless. |
| spinDuration | number | 20 | Seconds per full turn. |
| onHover | "none" | "speedUp" | "slowDown" | "pause" | "goBonkers" | "speedUp" | What hovering does to the spin. |
| size | number | 220 | Diameter in px. |
| children | ReactNode | — | Optional content in the middle of the ring. |
| className | string | — | Extra classes for the root element. |