Skip to content
ProLifetime access for $199, paid once, every future release included
Truffle UI

Booking Request

ProNew

An offer to book an artist: who is asking, the date, venue and fee, with accept, decline and a counter-offer that opens a field in place.

Installation

pnpm dlx shadcn@latest add @viewport/booking-request

First time? Add the @viewport registry to components.json. Setup takes one minute.

Usage

The code behind the preview above comes with Truffle Pro.

Props

PropTypeDefault
event*string

The event, e.g. "Harbor Lights Festival".

—
from*string

Who is asking, e.g. the promoter or the venue's booker.

—
date*string

When and where, already formatted.

—
venue*string—
capacitystring

Details shown as short facts, e.g. capacity and set length.

—
setLengthstring—
offer*string

The fee offered, already formatted.

—
termsstring

Extra terms in a line, e.g. "Plus travel and two hotel rooms".

—
expiresstring

A deadline for answering, already formatted.

—
status"pending" | "accepted" | "declined" | "countered""pending"
counterstring

The counter-offer on the table, when `status` is "countered".

—
onAccept() => void—
onDecline() => void—
onCounter(amount: string) => void

Called with the amount typed, as text.

—
classNamestring—

Accessibility

  • An article named with the event.
  • The counter-offer field takes focus when it opens.
  • The outcome is announced and written out; the actions are removed once answered.
  • Respects prefers-reduced-motion.