Skip to content

    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.

    Open
    Customize

    none
    speedUp
    slowDown
    pause
    goBonkers

    Installation

    npx shadcn@latest add @glint-ui/ring-type

    First 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

    PropTypeDefaultDescription
    textstring"GLINT • MOTION • COMPONENTS • "Text around the ring. Trailing separator keeps the loop seamless.
    spinDurationnumber20Seconds per full turn.
    onHover"none" | "speedUp" | "slowDown" | "pause" | "goBonkers""speedUp"What hovering does to the spin.
    sizenumber220Diameter in px.
    childrenReactNode—Optional content in the middle of the ring.
    classNamestring—Extra classes for the root element.