Trophy UI is an open-source library of in-app components for consumer web and mobile apps, built on top of shadcn/ui. It helps you ship the in-app experiences that build habits and keep users coming back, faster.
Trophy UI provides pre-built, customizable React components for in-app personalization—streaks, milestones, leaderboards, points, XP charts, boost banners, and more. Components work with any backend, and their props and data shapes are designed to work seamlessly with Trophy, the 1:1 customer engagement platform. The shadcn/ui CLI pulls components straight from the registry so you can own the code and tailor it to your product.
Use the shadcn CLI with the Trophy registry URL:
npx shadcn@latest add https://ui.trophy.so/streak-badgeBefore using Trophy UI, ensure your project meets these requirements:
- Node.js 18 or later
- React 18+ — components are client-side React
- Tailwind CSS v4+ configured so utility classes compile (see semantic theme tokens Trophy expects)
- shadcn/ui initialized in your project (
npx shadcn@latest init) withcomponents.jsonand path aliases set up
Install every registry component at once:
npx shadcn@latest add https://ui.trophy.so/allThis adds components (and any shared primitives they depend on) into your configured components directory.
Add individual components by name:
npx shadcn@latest add https://ui.trophy.so/component-nameExamples:
npx shadcn@latest add https://ui.trophy.so/points-chart
npx shadcn@latest add https://ui.trophy.so/leaderboard-card
npx shadcn@latest add https://ui.trophy.so/streak-badgeYou can also point at the JSON registry entries directly:
npx shadcn@latest add https://ui.trophy.so/r/points-chart.jsonBrowse the component catalog at ui.trophy.so/r/registry.json, or on the docs site: Components and the introduction.
If you would like to contribute to Trophy UI:
- Fork the repository
- Create a branch for your change
- Make your updates (registry sources live under
apps/www/registry/) - Open a pull request against
main
Read the contributing guide for local setup, pnpm registry:build, and review expectations.
Licensed under the MIT license.
Built by Trophy.
