X Enterprises
Card

CardQuota

Multi-quota card displaying usage bars with warning, critical, and exceeded states.

CardQuota

Displays multiple usage quotas in a grid or list layout with warning/critical/exceeded badges and optional overage pricing.

Component

<XACardQuota />

Displays multiple usage quotas in a grid or list layout with warning/critical/exceeded badges and optional overage pricing.

<XACardQuota
  title="Plan Usage"
  :quotas="[
    { label: 'API Calls', used: 8200, limit: 10000, unit: 'calls', icon: 'i-lucide-zap', warningThreshold: 80 },
    { label: 'Storage', used: 4.2, limit: 5, unit: 'GB', icon: 'i-lucide-hard-drive' },
  ]"
  reset-date="2026-04-01"
  show-summary
  current-plan="Pro"
/>

Props

PropTypeDefaultDescription
quotasarrayRequired. Array of quota objects.
titlestring''Card title.
descriptionstring''Card subtitle.
resetDateDate | string | nullnullQuota reset date shown in the header.
layout'grid' | 'list''grid'Layout mode.
columnsnumberNumber of grid columns.
showSummarybooleanfalseShow a footer summarising limits reached.
currentPlanstring''Plan name shown in the summary footer.

Emits

EventPayloadDescription
upgradeFired when the "Upgrade Plan" button is clicked.

AI Context

component: XACardQuota
package: "@xenterprises/nuxt-x-app"
use-when: Showing plan usage limits and resource consumption for multiple resources in one card — API calls, storage, seats, etc. Emits "upgrade" when the upgrade button is clicked.
Copyright © 2026