X Enterprises
Card

CardQuotaBar

Single-resource quota card with a progress bar and auto-color threshold support.

CardQuotaBar

Single-resource quota card with a UProgress bar, optional auto-color thresholds, and a footer slot.

Component

<XACardQuotaBar />

Single-resource quota card with a UProgress bar, optional auto-color thresholds, and a footer slot.

<XACardQuotaBar
  title="API Requests"
  subtitle="This billing period"
  :value="7800"
  :max="10000"
  unit="calls"
  color="primary"
  auto-color
  show-percent
/>

Props

PropTypeDefaultDescription
titlestringRequired. Card title.
valuenumberRequired. Current usage value.
maxnumberRequired. Maximum limit.
subtitlestring''Optional subtitle.
unitstring''Unit label (e.g. 'GB').
color'primary' | 'secondary' | 'success' | 'warning' | 'error' | 'info' | 'neutral''primary'Progress bar color.
iconstring''Lucide icon name.
showPercentbooleanfalseShow percentage instead of value/max.
decimalsnumber0Decimal places for formatted values.
autoColorbooleanfalseAuto-switch to warning/error color at thresholds.
warningThresholdnumber80Percentage at which to switch to warning color.
errorThresholdnumber95Percentage at which to switch to error color.

AI Context

component: XACardQuotaBar
package: "@xenterprises/nuxt-x-app"
use-when: Showing a single resource's usage against a limit with a progress bar — API calls, storage, seats, etc. autoColor switches to warning at warningThreshold (default 80%) and error at errorThreshold (default 95%).
Copyright © 2026