ENGLISH·COURSE API
    Preparing search index...
    • One prize from the arcade counter, drawn in colour or as a silhouette.

      Parameters

      • prize: {
            prize:
                | "whistle"
                | "harmonica"
                | "megaphone"
                | "drum"
                | "car"
                | "microphone"
                | "kazoo"
                | "spring"
                | "kaleidoscope"
                | "yoyo"
                | "top"
                | "walkie"
                | "tinphone"
                | "crown"
                | "robot"
                | "compass"
                | "xylophone"
                | "maracas"
                | "trumpet"
                | "boomerang"
                | "skate"
                | "popper"
                | "pinwheel"
                | "jackbox"
                | "bell"
                | "duck"
                | "kite"
                | "gift";
            locked?: boolean;
            size?: number;
        }

        Which prize to draw

      Returns Element

      A module's prize stays a silhouette until every one of its tickets is earned, so the same illustration has two states: three paints in colour, or one silhouette colour (--prize-silhouette) that hides every detail.

      The illustration is decorative — whatever it means (the prize's name, whether it is redeemed) must be said by nearby text — so it is hidden from assistive technology.

      <PrizeIcon prize="harmonica" locked={ticketsEarned < ticketCount} size={104} />