Booking Request
ProNewAn 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
| Prop | Type | Default |
|---|---|---|
| event* | stringThe event, e.g. "Harbor Lights Festival". | — |
| from* | stringWho is asking, e.g. the promoter or the venue's booker. | — |
| date* | stringWhen and where, already formatted. | — |
| venue* | string | — |
| capacity | stringDetails shown as short facts, e.g. capacity and set length. | — |
| setLength | string | — |
| offer* | stringThe fee offered, already formatted. | — |
| terms | stringExtra terms in a line, e.g. "Plus travel and two hotel rooms". | — |
| expires | stringA deadline for answering, already formatted. | — |
| status | "pending" | "accepted" | "declined" | "countered" | "pending" |
| counter | stringThe counter-offer on the table, when `status` is "countered". | — |
| onAccept | () => void | — |
| onDecline | () => void | — |
| onCounter | (amount: string) => voidCalled with the amount typed, as text. | — |
| className | string | — |
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.