# Pricing blocks

> Subscription plans, a single offer, and a usage estimator that shows its arithmetic.

Source: https://www.honestui.com/docs/marketing/pricing

Prices say what they cover and when you are charged. Figures are formatted for the locale and currency you pass.

## Three plans with annual billing [#three-plans-with-annual-billing]

Names, prices, actions, and lists share rows across all three plans. The yearly price states the total you are charged, not only the monthly equivalent.

<BlockPreview name="pricing-three-plans" />

| Detail         | Guidance                                                                                                                                           |
| -------------- | -------------------------------------------------------------------------------------------------------------------------------------------------- |
| Use it for     | Subscriptions with a few clear tiers.                                                                                                              |
| Content        | Three plans. Three to five features each, with the difference first.                                                                               |
| Optional       | The yearly note, the closing note, and the recommended line.                                                                                       |
| States         | Monthly and yearly are native radios, so arrow keys work. The new total is announced.                                                              |
| Requires       | [Foundation](/docs/marketing/foundation), [Button](/docs/components/button)                                                                        |
| Goes well with | [Signature quote](/docs/marketing/testimonials#signature-quote), [Split questions with contact](/docs/marketing/faqs#split-questions-with-contact) |

## Single offer [#single-offer]

One price with room around it, beside everything it includes.

<BlockPreview name="pricing-single-offer" />

| Detail         | Guidance                                                                                                                                 |
| -------------- | ---------------------------------------------------------------------------------------------------------------------------------------- |
| Use it for     | Courses, downloads, memberships, and fixed-price services.                                                                               |
| Content        | One offer and four to six inclusions.                                                                                                    |
| Optional       | The note and the description of each inclusion.                                                                                          |
| States         | None.                                                                                                                                    |
| Requires       | [Foundation](/docs/marketing/foundation), [Button](/docs/components/button)                                                              |
| Goes well with | [Editorial quote grid](/docs/marketing/testimonials#editorial-quote-grid), [Open question grid](/docs/marketing/faqs#open-question-grid) |

## Usage-based pricing [#usage-based-pricing]

A slider for a feel and a field for the exact number. The breakdown shows each tier, its rate, and what it adds. Past the last tier, the total gives way to a contact action.

<BlockPreview name="pricing-usage" />

| Detail         | Guidance                                                                                                                                                                         |
| -------------- | -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| Use it for     | Products billed by volume.                                                                                                                                                       |
| Content        | Three to five tiers and one sentence that defines the unit.                                                                                                                      |
| Optional       | The assumptions list.                                                                                                                                                            |
| States         | Typing and dragging update one estimate. The slider moves through orders of magnitude and speaks whole numbers. The total is announced politely.                                 |
| Requires       | [Foundation](/docs/marketing/foundation), [Button](/docs/components/button), [Field](/docs/components/field), [Input](/docs/components/input), [Slider](/docs/components/slider) |
| Goes well with | [Open benefit columns](/docs/marketing/features#open-benefit-columns), [Centered questions](/docs/marketing/faqs#centered-questions)                                             |

## Usage [#usage]

Every prop has a default, so a block renders as soon as it is installed. Pass your own content to replace it.

```tsx
import { PricingThreePlans } from "@/components/marketing/pricing-three-plans"

<PricingThreePlans
  currency="EUR"
  locale="de-DE"
  defaultBilling="monthly"
  plans={plans}
/>
```

### PricingThreePlans [#pricingthreeplans]


  ### `plans`

type: `PricingPlan[]`

Name, description, monthly and yearly price, unit, action, and features.

  ### `currency`

type: `string` · default: `&#x22;USD&#x22;`

An ISO 4217 code.

  ### `locale`

type: `string` · default: `&#x22;en-US&#x22;`

Formats every figure.

  ### `defaultBilling`

type: `&#x22;monthly&#x22; | &#x22;yearly&#x22;` · default: `&#x22;yearly&#x22;`

The billing period shown first.

  ### `yearlyNote`

type: `string`

A short saving beside Yearly. Check it against your prices.


### PricingUsage [#pricingusage]


  ### `tiers`

type: `UsageTier[]`

The last unit of each tier and its price for a thousand units.

  ### `unit`

type: `string` · default: `&#x22;events&#x22;`

What you count, in the plural.

  ### `unitDefinition`

type: `string`

Says exactly what counts as one.

  ### `max`

type: `number` · default: `20000000`

Above this, the contact action replaces the estimate.
