Skip to content

    Browse components

    Flip Flow

    Split-flap tiles that flip through their items like a flip clock, the top half falling over a hinge; stagger several to make a flipping stream.

    Open
    Customize

    Installation

    npx shadcn@latest add @glint-ui/flip-flow

    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/flip-flow.json

    Usage

    import { FlipFlow } from "@/components/ui/flip-flow";
    
    {columns.map((items, i) => (
      <FlipFlow key={i} items={items} delay={i * 160} />
    ))}

    Props

    PropTypeDefaultDescription
    itemsReactNode—Array of nodes to cycle through; each fills the tile.
    intervalnumber2600Ms between flips.
    durationnumber800Ms one flip takes.
    radiusnumber16Corner radius in px.
    pausedbooleanfalseStop cycling.
    delaynumber0Ms before the first flip; stagger it across tiles.
    widthnumber180Tile width in px.
    heightnumber240Tile height in px.
    classNamestring—Extra classes for the root element.