Blocks / Shell

Trial Banner

Dismissable trial-status strip for the app shell's bannerTop seam: days and credits remaining with an upgrade CTA, urgency-ramped visuals, dismiss-for-today, and a consumer config (lib/trial-banner-config.ts) for the CTA target and route suppression (hidden on /chat by default).

$pnpm exec shadcn add @intelligo/trial-banner

Run it inside an app made by intelligo create. Anywhere else, name the registry and install the base first.

Loading preview…
about this block

Dismissable trial-status strip for the app shell's bannerTop seam: days and credits remaining with an upgrade CTA, urgency-ramped visuals, dismiss-for-today, and a consumer config (lib/trial-banner-config.ts) for the CTA target and route suppression (hidden on /chat by default). Bind TrialBannerContainer as shellConfig.bannerTop.

yours to edit
  • lib/trial-banner-config.ts

messages/en/trial-banner.json

Everything else is used verbatim; a deployment varies through these files and translations.How seams work →

built from

button

npm packages it adds

@intelligo-dev/auth · @intelligo-dev/billing · @intelligo-dev/core · lucide-react · next-intl

what shadcn add writes · 4 files
Components
  • components/trial/trial-banner-container.tsx
  • components/trial/trial-banner.tsx
Actions, config and messages
  • lib/trial-banner-config.ts
  • messages/en/trial-banner.json

Ready to try it? Three commands and the app runs against a stub model.