Audition Card
ProNewOne audition to review: the performer and part, a slot for their tape, a one-to-five score on each criterion with an average once all are scored, and pass, callback or shortlist.
Installation
pnpm dlx shadcn@latest add @viewport/audition-card
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 |
|---|---|---|
| name* | stringThe performer. | — |
| role* | stringWhat they are auditioning for, e.g. "Lead vocal" or "Role: Nora". | — |
| details | string[]Short facts, e.g. range, location, union status. | [] |
| image | stringA portrait. Initials are drawn when there is none. | — |
| media | React.ReactNodeThe tape or reel: an audio or video player, or any element. | — |
| criteria* | { id: string; label: string }[]What is being judged, e.g. pitch, presence, fit. | — |
| scores* | Record<string, number>Scores from 1 to 5 by criterion. Missing means not scored yet. | — |
| onScoresChange* | (scores: Record<string, number>) => void | — |
| decision | Decision | null | — |
| onDecisionChange | (decision: Decision | null) => void | — |
| className | string | — |
Accessibility
- Each criterion is a radio group; arrow keys change the score.
- The average waits until every criterion is scored and says how many are left.
- Decisions are pressed-state buttons with an icon and a word.
- Respects prefers-reduced-motion.