Skip to content

    Browse components

    Departure Board

    An airport departures board: every tile flips through the drum until it lands on the next word.

    Open
    Customize

    left
    center

    Installation

    npx shadcn@latest add @glint-ui/departure-board

    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/departure-board.json

    Usage

    import { DepartureBoard } from "@/components/ui/departure-board";
    
    <DepartureBoard words={["Departures", "Boarding", "On time"]} />

    Props

    PropTypeDefaultDescription
    wordsstring[]["Departures","Boarding","Tokyo 08:45","On time"]Words to cycle through.
    intervalnumber4200Ms between words.
    flipDurationnumber55Ms for one flap to fall.
    staggernumber40Ms between tiles starting.
    align"left" | "center""center"Where shorter words sit.
    tileColorstring"#1b1b1f"Flap background.
    textColorstring"#f5f5f0"Character color.
    classNamestring—Extra classes for the root element.