Skip to content

    Browse components

    Bend Ribbon

    An endless ribbon of images bent along an arc that you scroll, drag or arrow through, easing to a snap.

    Open
    Customize

    Installation

    npx shadcn@latest add @glint-ui/bend-ribbon

    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/bend-ribbon.json

    Usage

    import { BendRibbon } from "@/components/ui/bend-ribbon";
    
    <BendRibbon items={[{ image: "/a.jpg", text: "Dawn" }, { image: "/b.jpg", text: "Dusk" }]} bend={2} />

    Props

    PropTypeDefaultDescription
    itemsReactNode—Array of { image, text? }.
    bendnumber2Arc curvature. 0 is flat, negative flips it.
    itemWidthnumber240Card width in px.
    itemHeightnumber300Image height in px.
    gapnumber36Px between cards.
    scrollSpeednumber1Wheel/drag multiplier.
    easenumber0.08Follow easing (lower = floatier).
    autoScrollnumber24Idle drift in px/s.
    radiusnumber16Corner radius in px.
    classNamestring—Extra classes for the root element.