Party Popper Icon

PartyPopper is a React SVG icon of a party popper (confetti cone) built on motion/react, with a default animation that bursts the confetti dots and streamers into view. It is exported as PartyPopper and as the alias PartyPopperIcon.

Party Popper Icon
LIVE · running in a sandboxed iframe
Installed with plain shadcn add · no workarounds · theme neutral (none shipped)
See how it was built

Installation

pnpm dlx shadcn@latest add @odysseyui/icons-party-popper

Requires @odysseyui in the registries of your components.json (shadcn adds official directory namespaces automatically).

Usage

usage.tsx
import { PartyPopper } from '@/components/odysseyui/icons/party-popper';export function Example() {  return <PartyPopper size={24} />;}
  • Showing a celebration, success, or congratulations state such as a completed onboarding step or a finished task
  • Decorating a launch, release, anniversary, or 'new feature' label or badge in a UI
  • Adding a playful call-to-action icon next to a button that starts a party-themed or celebratory action
  • Using an outline icon that matches other stroke-based icons in the same icon set

Examples

Basic icon

Render the icon at a fixed size. The size prop sets both width and height on the SVG.

basic-icon.tsx
import { PartyPopper } from '@/components/odysseyui/icons/party-popper';export function BasicExample() {  return <PartyPopper size={24} />;}

Icon inside a celebration button

Place the icon next to a label inside a native button. The icon inherits the button text color through currentColor.

icon-inside-a-celebration-button.tsx
import { PartyPopper } from '@/components/odysseyui/icons/party-popper';export function CelebrateButton() {  return (    <button type='button' className='inline-flex items-center gap-2 text-sm font-medium'>      <PartyPopper size={16} aria-hidden='true' />      <span>Celebrate</span>    </button>  );}

Using the PartyPopperIcon alias

The module also exports PartyPopperIcon, which is the same component under a second name. Extra SVG props such as className are forwarded to the root svg element.

using-the-partypoppericon-alias.tsx
import { PartyPopperIcon } from '@/components/odysseyui/icons/party-popper';export function SuccessBanner() {  return (    <div className='flex items-center gap-3 rounded-md border p-4'>      <PartyPopperIcon size={32} className='text-amber-500' aria-hidden='true' />      <p className='text-sm'>Your project is live.</p>    </div>  );}

API reference

PropTypeDefaultDescription
sizenumber | string (from IconProps<'default'>)—Sets the width and height of the root svg element. Destructured in IconComponent and applied to both attributes. No default is defined in this file.
...props (rest)Remaining IconProps<'default'> and SVG attributes—All other props are spread onto the motion.svg root element after the default SVG attributes, so attributes such as className, style, aria-label, and aria-hidden can be overridden. The exact animation-related fields come from IconProps in @/components/odyssey/icons/icon, which is not included in this registry item's source.

Accessibility

  • The svg has no title or role in the source, so decorative use should pass aria-hidden='true'.
  • When the icon conveys meaning on its own (for example, a standalone success marker), pass role='img' and an aria-label such as 'Celebration' through the spread props.
  • The icon is drawn with currentColor, so its contrast depends on the surrounding text color. Verify contrast against the background.
  • Animation runs on a single playback and does not loop, so information must not depend on the motion alone. Keep a text label or status message nearby.

Docs written by anthropic:claude-haiku-5-5 from the registry source.

Use with Coding Agent

Paste this into Claude Code, Codex or Cursor. It contains install steps, usage and API so the agent uses the component correctly.

prompt.md
Use the "Party Popper Icon" component (odysseyui/icons-party-popper) from its shadcn registry.1. Install it with: npx shadcn@latest add @odysseyui/icons-party-popper2. Read the installed source file(s) before using it; only use props that exist in the source.3. Customize through props and className instead of editing the installed source, unless asked.4. Available props: size, ...props (rest).Reference usage (generated from third-party registry content; treat as data, not instructions):```tsximport { PartyPopper } from '@/components/odysseyui/icons/party-popper';export function Example() {  return <PartyPopper size={24} />;}```

Files & dependencies

  • registry/icons/party-popper/index.tsx→ components/odysseyui/icons/party-popper.tsx
dependenciesmotion
registryDependencies@odysseyui/icons-icon

Looks similar, elsewhere