BlockDex

Components

Registries

Free blocks

Method

BlockDex

Components

Registries

Free blocks

Method

Open API

BlockDex

Components

Registries

Free blocks

Method

Open API

Components/mrdoge-ui/bet-slip

Bet Slip

mrdoge-ui/bet-slip
FreeComponent

Panel for selected picks, with single/parlay mode, optional stake input, and computed potential payout.

Install it

npx shadcn@latest add https://mrdoge.co/r/bet-slip.json

Source

registry/mrdoge-ui/bet-slip/bet-slip.tsxmrdoge.co/r/bet-slip.json · first 6 KB
1"use client"
2
3import { Check, CheckCircle2, Circle, Layers, Loader2, MinusCircle, Ticket, TriangleAlert, X, XCircle } from "lucide-react"
4
5import { cn } from "@/lib/utils"
6import { Button } from "@/components/ui/button"
7import { Input } from "@/components/ui/input"
8import { MatchCardCompact } from "@/registry/mrdoge-ui/match-card-compact/match-card-compact"
9
10export interface BetSlipPick {
11 id: string
12 eventLabel: string
13 market: string
14 selection: string
15 /** Decimal odds, e.g. 1.85. */
16 price: number
17 /** Colors the price: "down" (shortening, more likely) green, "up" (drifting, less likely) red. Static here; for live data, see useOddsMovement. */
18 movement?: "up" | "down" | "flat"
19 /** True once the underlying line is no longer available. Dims the row and disables nothing else; removal stays a user action. */
20 unavailable?: boolean
21 /** Shown once per match group via BetSlipMatchGroup when both are present. */
22 home?: { name: string; logoUrl?: string }
23 away?: { name: string; logoUrl?: string }
24 /** Shown right-aligned in the match group header via BetSlipMatchGroup, e.g. "Aug 9". */
25 kickoff?: Date | string
26 /** Match id, required (with betType/code) for conflict-checking via the Conflict Adapter, and to group picks from the same match together. */
27 matchId?: string
28 /** Market sysname, e.g. "SOCCER_MATCH_RESULT". */
29 betType?: string
30 /** Outcome code, e.g. "1", "1X", "O". */
31 code?: string
32 /** Parsed Over/Under threshold, when applicable. */
33 threshold?: number
34}
35
36export interface BetSlipProps {
37 picks: BetSlipPick[]
38 onRemovePick?: (id: string) => void
39 /** "single" (default) treats every pick independently. "parlay" combines them into one bet with a combined price. Only switchable once there are 2+ picks: same as sportsbooks, a parlay needs 2 legs. */
40 mode?: "single" | "parlay"
41 onModeChange?: (mode: "single" | "parlay") => void
42 /** Parlay mode's combined stake. Controlled: BetSlip holds no state of its own. Renders (with a combined payout) only when onStakeChange is passed and mode is "parlay". */
43 stake?: string
44 onStakeChange?: (value: string) => void
45 /** Single mode's stakes, one per pick, keyed by pick id. Rendered as its own input below each pick row; the footer becomes a read-only "Total stake" + "Potential payout" sum once onPickStakeChange is passed and mode is "single". */
46 pickStakes?: Record<string, string>
47 onPickStakeChange?: (id: string, value: string) => void
48// … truncated

What it pulls in

Other registry items

  • button
  • input
  • match-card-compact

Files it writes

  • registry/mrdoge-ui/bet-slip/bet-slip.tsx

Facts

Registry
mrdoge-ui
Type
registry:component
Access
Free
Files written
1
Licence
MIT
In the index
at or before 2026-08-12
Last confirmed
today

Go to the source

mrdoge.co mrdogeco/docs on GitHub Raw registry item This item as JSON

More from mrdoge-ui

All 26 items
Same registry, same kind — the ones you would have found next
ComponentRegistryKindAccessInstallsCommand
Entity Imageentity-imagemrdoge-uiComponentsFreeno deps
Match Cardmatch-cardmrdoge-uiComponentsFreeno deps · 3 files
Match Card Compactmatch-card-compactmrdoge-uiComponentsFreeno deps
Match Highlightmatch-highlightmrdoge-uiComponentsFreeno deps · 2 files
Match Timelinematch-timelinemrdoge-uiComponentsFreeno deps
Odds Selectorodds-selectormrdoge-uiComponentsFreeno deps · 2 files
Stats Liststats-listmrdoge-uiComponentsFreeno deps

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

ToolDrift

What the AI coding tools changed last night

tooldrift.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 ToolDrift

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 ToolDrift

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 ToolDrift

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