Starter
$9/mo
Pro
$29/mo
Enterprise
$99/mo
Installation
Usage
"use client"
import { useState } from "react"
import { PricingToggle, AnimatedPrice } from "@/components/pioneerui/pricing-toggle"
export default function Pricing() {
const [isAnnual, setIsAnnual] = useState(false)
return (
<>
<PricingToggle onChange={setIsAnnual} discount="Save 20%" />
<AnimatedPrice monthly={29} annual={23} isAnnual={isAnnual} />
</>
)
}Props — PricingToggle
| Prop | Type | Default | Description |
|---|---|---|---|
monthlyLabel | string | Monthly | Monthly option label |
annualLabel | string | Annual | Annual option label |
discount | string | Save 20% | Discount badge text |
defaultAnnual | boolean | false | Default selected state |
onChange | (isAnnual: boolean) => void | undefined | Change callback |
Props — AnimatedPrice
| Prop | Type | Default | Description |
|---|---|---|---|
monthly | string | number | — | Monthly price (required) |
annual | string | number | — | Annual price (required) |
isAnnual | boolean | — | Current billing period (required) |
currency | string | $ | Currency symbol |