Componentfeedback1.18 KB gzipZero dependencies
Upgrade Prompt
Upgrade call-to-action card with shine sweep, feature list and dismiss.
Preview
Live Preview
Installation
Tokens guide →Add to your project via CLI (zero dependencies, code you own):
npx bigbullui add upgrade-promptOr install the full npm package:
npm install bigbulluiUsage
tsx3 lines
import { UpgradePrompt } from "@/components/ui/upgrade-prompt"; <UpgradePrompt />Source code
upgrade-prompt.tsx + 1 helperZero third-party dependencies (2 local files shown in tabs below).
tsxupgrade-prompt.tsx71 lines
"use client"; import * as React from "react";import { cn } from "./lib/utils"; export interface UpgradePromptProps extends React.HTMLAttributes<HTMLDivElement> { title?: string; description?: string; features?: string[]; price?: string; onUpgrade?: () => void; onDismiss?: () => void;} /** Plan upgrade callout card: features + pricing + dismiss. */export function UpgradePrompt({ title = "Ready for unlimited power?", description = "Upgrade to Pro to remove all limits and empower your team.",Props
Interactive Prop Playground
Tweak parsed AST props below to generate ready-to-paste JSX.
tsx3 lines
import { UpgradePrompt } from "@/components/ui/upgrade-prompt"; <UpgradePrompt />| Prop | Type | Description |
|---|---|---|
| title | string | Primary heading or title text. (Default: "Ready for unlimited power?") |
| description | string | Descriptive helper or subtitle text. |
| features | string[] | Configures features. |
| price | string | Configures price. (Default: "₺149/ay") |
| onUpgrade | () => void | Callback invoked on upgrade. |
| onDismiss | () => void | Callback invoked on dismiss. |