Trial Banner

Trial banner with a days left headline, a short note on what stays unlocked and an Upgrade button, on an accent tinted strip. Built for SaaS billing nudges.

src/registry/ui/trial-banner.tsx/r/trial-banner.json

Installation#

bash
npx shadcn@latest add @minidev/trial-banner

MiniDev UI is in the shadcn registry directory, so the short form works with no setup. Older CLI versions can use the full URL: npx shadcn@latest add https://ui.minidev.pro/r/trial-banner.json

Usage#

tsx
import { TrialBanner } from "@/components/ui/trial-banner"

export function Example() {
  return <TrialBanner />
}

API reference#

TrialBanner props
PropTypeDefault
daysLeftnumber5
classNamestring-

Dependencies#

npm

React only

Built from

All pricing and billing components

Learn more