Pricing Plan
定价页的方案:带徽章的标题、价格(被折扣价替代时显示删除线)及计费周期、带对勾的功能列表、行动号召和条款,并可突出显示其中一个方案。
Angular: 可用 Vue: 可用 React: 可用 React Native: 暂不可用
用法
Free
For trying it out.
$0/month
3 meetings a month Summaries 7-day history
Pro
Most popularFor people who meet a lot.
Regular price $24Discounted price $19/monthbilled annually
Unlimited meetings Search across everything Priority support
Team
For the whole company.
Custom
Everything in Pro, plus:
Shared spaces Admin controls Single sign-on
<sone-pricing-plans [plans]="plans" scale />导入
import {
SonePricingPlanComponent,
SonePricingPlanFooterDirective,
SonePricingPlansComponent,
} from "@surface-one/angular/pricing-plan";API 参考
SonePricingPlanComponent组件
`<sone-pricing-plan>` — one plan of a pricing page (Nuxt UI PricingPlan): the title as a heading (`level`, default 3) with a `badge`, a description, the `price` (struck through when a `discount` replaces it) with its `billingCycle` / `billingPeriod`, a `tagline`, a feature list with check marks, a call-to-action `button` (a link) and `terms`. `highlight` draws it with the accent; with `scale` it stands taller than its neighbours once the row is wide. `[sonePricingPlanFooter]` adds your own controls.
| 名称 | 类型 | 默认值 |
|---|---|---|
title必填 | string | — |
description | string | null | null |
badgeA badge beside the title ("Most popular"). | string | null | null |
price必填The price as shown: `$29`, `Free`, `Custom`. | string | — |
discountA lower price that replaces it; `price` is struck through. | string | null | null |
billingCycle`/month` — after the price. | string | null | null |
billingPeriod`billed annually` — under the cycle. | string | null | null |
taglineA line between the price and the features. | string | null | null |
features | readonly PricingPlanFeature[] | [] |
buttonThe call to action, a link drawn as a full-width button. | PricingPlanButton | null | null |
termsSmall print under the button. | string | null | null |
highlightDraws the plan with the accent: the one to pick. | boolean | false |
scaleA highlighted plan stands taller than its neighbours once the row is wide. | boolean | false |
levelThe title's heading level, 1–6. | HeadingLevel | 3 |
regularPriceLabelRead before a struck-through price. | — | $localize`:Before a struck-through price:Regular price` |
discountLabelRead before the price that replaces it. | — | $localize`:Before a discounted price:Discounted price` |
SonePricingPlanFooterDirective指令
`[sonePricingPlanFooter]` — your own controls next to the plan's button.
SonePricingPlansComponent组件
`<sone-pricing-plans>` — a row of pricing plans (Nuxt UI PricingPlans): from `plans` or projected `sone-pricing-plan`s, as many columns as fit. `scale` lets the highlighted plans stand taller.
| 名称 | 类型 | 默认值 |
|---|---|---|
plans | readonly PricingPlanItem[] | [] |
scaleHighlighted plans stand taller than their neighbours once the row is wide. | boolean | false |
levelThe plans' heading level, 1–6. | HeadingLevel | 3 |