BlockDex

Components

Registries

Free blocks

Method

BlockDex

Components

Registries

Free blocks

Method

Open API

BlockDex

Components

Registries

Free blocks

Method

Open API

Components/loomui/ticket-stub

Ticket Stub

loomui/ticket-stub
FreeComponent

A card torn along a perforation, with a notch bitten out of the paper at each end of it.

Live preview

live · rendered by the registry
Rendered by loomui on their own page — this is the component running, not a screenshot of it.

Install it

npx shadcn@latest add https://loomui.design/r/ticket-stub.json

Source

registry/loomui/ticket-stub.tsxloomui.design/r/ticket-stub.json
1"use client"
2
3import * as React from "react"
4
5import { cn } from "@/lib/utils"
6
7export interface TicketStubProps extends React.ComponentProps<"div"> {
8 /** The torn-off part. Sits after the perforation. */
9 stub?: React.ReactNode
10 /** Where the perforation falls, as a percentage of the long side. */
11 split?: number
12 /** Radius of the notches bitten out at each end of the tear, in pixels. */
13 notch?: number
14 /** Stub on the right of a wide ticket, or below a tall one. */
15 orientation?: "horizontal" | "vertical"
16 /** Lift the ticket off the page on hover. */
17 lift?: boolean
18}
19
20export function TicketStub({
21 children,
22 stub,
23 split = 68,
24 notch = 12,
25 orientation = "horizontal",
26 lift = true,
27 className,
28 style,
29 ...props
30}: TicketStubProps) {
31 const vertical = orientation === "vertical"
32
33 // Two circles cut out of the same shape. Intersecting the masks is what takes
34 // a bite from both ends of the tear instead of only the last one declared.
35 const mask = vertical
36 ? `radial-gradient(circle at left ${split}%, transparent ${notch}px, #000 ${notch + 0.5}px), radial-gradient(circle at right ${split}%, transparent ${notch}px, #000 ${notch + 0.5}px)`
37 : `radial-gradient(circle at ${split}% top, transparent ${notch}px, #000 ${notch + 0.5}px), radial-gradient(circle at ${split}% bottom, transparent ${notch}px, #000 ${notch + 0.5}px)`
38
39 // Everything the edge is made of lives out here. A `box-shadow` or a `border`
40 // on the masked element is cut away with the paper, which leaves the notches
41 // unoutlined, and on a dark background an edge drawn only in shadow is not
42 // an edge at all. Four offset drop shadows trace the alpha instead, so the
43 // outline follows the curve of every bite.
44 const edge = [
45 "drop-shadow(0 1px 0 var(--border))",
46 "drop-shadow(0 -1px 0 var(--border))",
47 "drop-shadow(1px 0 0 var(--border))",
48 "drop-shadow(-1px 0 0 var(--border))",
49 "drop-shadow(0 4px 10px rgb(0 0 0 / 0.14))",
50 ].join(" ")
51
52 return (
53 <div
54 data-slot="ticket-stub"
55 className={cn(
56 "relative",
57 lift &&
58 "ease transition-transform duration-200 hover:-translate-y-1 hover:rotate-[-0.4deg] motion-reduce:transition-none",
59 className
60 )}
61 style={{ filter: edge, ...style }}
62 {...props}
63 >
64 <div
65 className={cn(
66 "bg-card text-card-foreground flex overflow-hidden rounded-xl",
67 vertical ? "h-full flex-col" : "w-full flex-row"
68 )}
69// … truncated

What it pulls in

Other registry items

  • utils

Files it writes

  • registry/loomui/ticket-stub.tsx

Facts

Registry
loomui
Type
registry:ui
Access
Free
Files written
1
Theme wiring
ships cssVars
Licence
MIT
In the index
at or before 2026-08-20
Last confirmed
yesterday

Go to the source

Docs on loomui loomui.design rjcuff/Loom-UI on GitHub Raw registry item This item as JSON

More from loomui

All 91 items
Same registry, same kind — the ones you would have found next
ComponentRegistryKindAccessInstallsCommand
Aurora Backdropaurora-backdroploomuiComponentsFreeno deps
Bento Gridbento-gridloomuiComponentsFreeno deps
Card Stackcard-stackloomuiComponentsFreeno deps
Compare Slidercompare-sliderloomuiComponentsFreeno deps
Confetti Buttonconfetti-buttonloomuiComponentsFreeno deps
Count Upcount-uploomuiComponentsFreeno deps
Credit Cardcredit-cardloomuiComponentsFreeno deps
DrawerdrawerloomuiComponentsFree1 dep

Also from Kynth Studios

Built for the same person as BlockDex

SkillWorks

Claude Code skills and plugins, scored

skillworks.kynth.studio

RuleStack

AGENTS.md gallery and agent-config comparison

rulestack.kynth.studio

KitGrade

SaaS starter kits, scored on what can be checked

kitgrade.kynth.studio

The studio list

One product, taken apart, once a month

Kynth Studios pulls one shipped product open every month — what it does, what it cost to build, what the pipeline behind it looks like, and what the numbers did. One email a month, nothing in between.

Double opt-in — we send one confirmation link and nothing else until you click it.

BlockDex

Built by

Kynth Studios

the studio behind SkillWorks, RuleStack and KitGrade

part of Toolproof, the measurement layer for AI agent tooling

Index

Components
Registries
Method
Open API

Guides

shadcn component libraries
Best shadcn registries
Free shadcn blocks

Reference

Corpus counts
Crawl health
hello@kynth.studio
Privacy
Terms

© 2026 BlockDex. A Kynth Studios product. Changelog

BlockDex

The studio list

One product, taken apart, once a month

Kynth Studios pulls one shipped product open every month — what it does, what it cost to build, what the pipeline behind it looks like, and what the numbers did. One email a month, nothing in between.

Double opt-in — we send one confirmation link and nothing else until you click it.

BlockDex

Built by

Kynth Studios

the studio behind SkillWorks, RuleStack and KitGrade

part of Toolproof, the measurement layer for AI agent tooling

Index

Components
Registries
Method
Open API

Guides

shadcn component libraries
Best shadcn registries
Free shadcn blocks

Reference

Corpus counts
Crawl health
hello@kynth.studio
Privacy
Terms

© 2026 BlockDex. A Kynth Studios product. Changelog

BlockDex

The studio list

One product, taken apart, once a month

Kynth Studios pulls one shipped product open every month — what it does, what it cost to build, what the pipeline behind it looks like, and what the numbers did. One email a month, nothing in between.

Double opt-in — we send one confirmation link and nothing else until you click it.

BlockDex

Built by

Kynth Studios

the studio behind SkillWorks, RuleStack and KitGrade

part of Toolproof, the measurement layer for AI agent tooling

Index

Components
Registries
Method
Open API

Guides

shadcn component libraries
Best shadcn registries
Free shadcn blocks

Reference

Corpus counts
Crawl health
hello@kynth.studio
Privacy
Terms

© 2026 BlockDex. A Kynth Studios product. Changelog

BlockDex