Blossom UI

Pricing

Pricing table component with plans, feature lists, a highlighted plan and a monthly or yearly billing toggle.

How to use it

Run npx @blossomui/react add pricing, or copy src/components/UI/Pricing/Pricing.tsx into your React project and import it.

import { Pricing } from './components/ui/Pricing'

Props

PricingFeature

PropTypeDescription
label (required)string
included (required)boolean

PricingPlan

PropTypeDescription
name (required)string
price (required)numberPrice per month.
features (required)PricingFeature[]
highlightedbooleanMarks the recommended plan.
ctastring

PricingLabels

PropTypeDescription
billingPeriod (required)string
monthly (required)string
yearly (required)string
perMonth (required)stringText after the price when it is monthly, for example "month" for "/month".
perYear (required)string
subscribe (required)string

PricingProps

PropTypeDescription
formatPrice(price: number) => stringFormats the price of a plan, for example with `Intl.NumberFormat` to show another currency.
labelsPartial<PricingLabels>
colorstringAccent color of this component: any CSS color. Without it the component uses `--blossom-accent`, which is pink by default.
plans (required)PricingPlan[]
variant'default' | 'border' | 'size'`border` outlines the highlighted plan, `size` makes it bigger.
billingTogglebooleanShows a monthly / yearly switch. Yearly prices are calculated with `yearlyMonths` months.
yearlyMonthsnumber
onSelect(plan: PricingPlan, billing: 'monthly' | 'yearly') => void

Getting started

  • Introduction
  • Installation
  • Changelog

Customization

  • Colors
  • Brand color
  • Texts and translation

Components

  • Accordion
  • Alert dialog
  • Alerts
  • Avatar
  • Badges
  • Banner
  • Breadcrumb
  • Buttons
  • Calendar
  • Cards
  • Carousel
  • Charts
  • Chip input
  • Collapsible
  • Color picker
  • Combobox
  • Command palette
  • Context menu
  • Copy button
  • Date picker
  • Drawer
  • Dropdown
  • Empty state
  • File upload
  • Footer
  • Forms
  • Hover card
  • Jumbotron
  • KBD
  • Menubar
  • Modal
  • Navbar
  • Navigation menu
  • Number input
  • OTP input
  • Pagination
  • Popover
  • Pricing
  • Progress
  • Rating
  • Resizable panels
  • Scroll area
  • Segmented control
  • Separator
  • Sidebar
  • Skeleton
  • Slider
  • Spinners
  • Stats
  • Stepper
  • Survey
  • Table
  • Tabs
  • Time picker
  • Timeline
  • Timer button
  • Toasts
  • Tooltip
  • Transfer list
  • Tree