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

Usage Quota

Usage limits. Pro · Shop and payments › Subscriptions and plans

Installation

npx valyro-cli@latest login
npx valyro-cli@latest add usage-quota
npm install valyro-ui-pro

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

Props

PropTypeDefault
meters *UsageQuotaMeter[]Quotas shown as meters; the fullest one sets the card's status and upgrade message.
variant'card' | 'compact''card'card — panel with header and upgrade footer; compact — dense rows for sidebars.
titleReactNodeDefaults to labels.title.
resetsAtDateInputWhen the quota period restarts.
onUpgrade() => voidShows an upgrade call to action.
localestringBCP 47 locale for numbers and dates; defaults to the ThemeProvider's.
labelsPartial<UsageQuotaLabels>Overrides for the built-in English text; keys left out keep their defaults.

Related components

Previous: Billing Plan Card · Next: Subscription Plan Simulator · All Shop and payments