Skip to content
shadcn.io

shadcn.io is not affiliated with official shadcn/ui

Boarding Pass Ticket Stub Features Block for React

Three route cards for a migration tool, each shaped like a perforated ticket: a manual-to-automated route on the main panel and the time saved on a stub, with a notch at each end of the divider.

Framework
UI library

Preview

Preview width

Installation

Part of Pro
Pro unlocks the code and one-line install of every Pro button and text effect, plus the MCP for your AI editor.
Have Pro already? Sign in to open it.Opens here as soon as you're Pro.

Overview

A ticket-style features section for React with Base UI. Three cards stack in a centred column, each a route from a manual way of working to an automated one: the main panel gives the route, "From manual releases to automated releases" with the time each takes, and a sentence; the stub gives the time saved. A solid divider joins them, with a half-circle notch cut from the card at each end of it, drawn with a CSS mask and outlined with a hairline arc, so it reads as a perforated ticket without dashes. The header adds the three savings up from the same list. Below md the stub sits under the main panel and the notches move to the card's sides. It's built from Badge and Guides, and it follows your theme. For migration tools, automation products and any before-and-after story told as a journey.

FAQ

How do I change the routes?

Edit ROUTES at the top of the file: each has the name and the minutes of the manual way and of the automated way, a sentence and what one run is called. The stub's time saved is the difference and the header's total is the sum, both worked out in the file, and minutes are written as "2 h 30 min".

How are the notches cut?

The card has a CSS mask made of two radial gradients, one per end of the divider, intersected so each takes out a 10 px circle centred on the card's edge. A half-circle outline, a hairline arc, is drawn over each cut. The stub's size is a CSS variable (--stub), its height on a phone and its width from md, so the cut always lands on the divider.

Does it work in every theme?

Yes. The card is bg-card with the border token, and the cut shows the page behind, so it works on light, dark and tinted pages and in every preset. There is no shadow, because a mask would clip it.

How does a screen reader read a ticket?

Each card is a list item with a heading, a route badge, the From and To lines with their times, the sentence and the stub's time saved, in that order. The notches and the arrows between From and To are decoration and are hidden.

What changes on a phone?

The route reads top to bottom with a down arrow, the stub drops under the main panel at a fixed height, and the notches move to the card's sides at the divider.

Does the ticket mirror in right-to-left languages?

No: it is a shape with a stub at one end, so the cards keep their direction (dir="ltr") and the mask lands on the divider in every language. Times such as "2 h 30 min" are in bdi.

  • Pro

    A customs declaration drawn as a page with four round stamps inked across it, over a band of four cells that say what earns each stamp and lift it on the page.

  • Pro

    A CI pipeline drawn as five stages joined by chevrons, each with its time and status, over a band that measures the pipeline's impact with rolling numbers.

  • Pro

    A shipment's route as one vertical road with five stops that alternate sides, solid up to the truck's stop and dashed beyond, each with its time and a done, now or expected badge.

  • Pro

    A request path for an edge-routing layer: five hops on one wire with a dot travelling along it, the time each hop spends under it, and a latency-budget bar that sums them.

  • Pro

    A bento of five features for an issue tracker, each cell drawn as the product at work: a live board with teammates' cursors, a pull request, a burndown, a triage rule and a typed SDK, in cells that share their hairlines.

  • Pro

    Chapter Outline Features

    Documents and objects

    A course outline laid out like a book's contents: eight numbered chapters in two ruled columns, each a collapsible row that opens to three sections, with read times and the reader's place.