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

Audition Card

ProNew

One 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

PropTypeDefault
name*string

The performer.

—
role*string

What they are auditioning for, e.g. "Lead vocal" or "Role: Nora".

—
detailsstring[]

Short facts, e.g. range, location, union status.

[]
imagestring

A portrait. Initials are drawn when there is none.

—
mediaReact.ReactNode

The 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—
decisionDecision | null—
onDecisionChange(decision: Decision | null) => void—
classNamestring—

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.