ValyroUI Русская версия

Subscription Manager

Subscription management: status, features, quotas, billing and cancellation. Pro · Shop and payments › Subscriptions and plans

Installation

npx valyro-cli@latest login
npx valyro-cli@latest add subscription-manager
npm install valyro-ui-pro

import 'valyro-ui-pro/styles.css';
import { SubscriptionManager } from 'valyro-ui-pro';

Props

PropTypeDefault
planName *ReactNodePlan name under the price: "Pro plan".
price *numberPrice per interval.
currencystring'USD'ISO 4217 code. Default USD.
status'active' | 'trialing' | 'past_due' | 'canceled''active'State of the subscription, shown as a pill. Default active.
memberSinceDate | string | numberStart of the subscription.
featuresReactNode[][]What the plan includes, one short phrase each.
usageSubscriptionUsage[][]Quotas with their use this period; the bar turns amber at 80% and red when used up, as in UsageQuota.
billingDescriptionListItem[][]Billing facts: next charge, payment method, cycle.
actionsReactNodeButtons under the billing facts: change plan, update payment.
onCancel() => voidShows the cancel footer; called by its button (confirm before canceling).
headingLevel1 | 2 | 3 | 4 | 5 | 62Level of the heading (default 2).
localestringBCP 47 locale for money, numbers and dates.
timeZonestringIANA time zone of memberSince (default: the ThemeProvider's); a date-only string is that day everywhere.
labelsPartial<SubscriptionManagerLabels>Overrides for the built-in English text; keys left out keep their defaults.

Related components

Previous: Loyalty Rewards · Next: Billing Plan Card · All Shop and payments