Measured entry

hextaui-ai-usage-quota

formminimal-flat

A client-side React status card for token consumption, request limits, reset timing, and an optional upgrade prompt. It ships as shadcn registry source and composes alert, badge, button, card, progress, and tooltip primitives. It depends on Tailwind theme utilities, the cn helper, Radix-backed UI pieces, and Lucide icons.

Specimen
Harness screenshot of hextaui-ai-usage-quota at 375 pixels wide
Harness screenshot at 375 pixels wide. This viewport scrolled sideways.
Harness screenshot of hextaui-ai-usage-quota at 768 pixels wide
Harness screenshot at 768 pixels wide. No horizontal overflow recorded.
Harness screenshot of hextaui-ai-usage-quota at 1440 pixels wide
Harness screenshot at 1440 pixels wide. No horizontal overflow recorded.

Measured

Every value below was written by the harness on the run that produced the frames above. None of it is derived from the prose.

Harness measurements recorded for hextaui-ai-usage-quota
BuildOK
MountOK
Console errors0
Uncaught page errors0
Horizontal overflowflagged at 375
Axe critical0
Axe serious1
Axe moderate0
Axe minor0
Gzip marginal55.0 KB (120.5 KB build, 65.5 KB baseline)
Bare modeFAIL
Provider requiredNO
Demo usedwritten from the component source API

What the harness recorded

BARE BUILD

✗ Build failed in 1.08s
error during build:
[vite]: Rollup failed to resolve import "lucide-react" from "<sandbox>re-85f97ba7c2dc/src/cut/blocks/ai/ai-usage-quota.tsx".

Verdict

A useful, focused dashboard block for an existing design system, with sensible conditional sections and accessible progress labeling. It needs a shadcn-style setup, and teams should fix the narrow-screen overflow and muted-text contrast before shipping it.

Use it if

  • You need one account or billing panel that combines token totals, quota progress, and request limits.
  • Your app already uses shadcn conventions and can supply the matching UI primitives and theme tokens.
  • You want reset countdowns, warning thresholds, and an optional upgrade action handled inside the component.

Skip it if

  • Your usage screen must fit narrow mobile layouts without adapting the component, since the verified view clips content.
  • You require an accessibility-clean result without remediation, since the muted text has a contrast violation.
  • You want a standalone or dependency-light widget that does not rely on a shadcn component layer and icon package.

Install

Installation record for hextaui-ai-usage-quota
Declared dependencies@radix-ui/react-slot, @radix-ui/react-progress, @radix-ui/react-tooltip, clsx, tailwind-merge
Missing on installnone
Bare installfails once the shadcn-style helpers are removed, so it needs that setup
Providerno provider required in the harness

In a non-shadcn project, add React client-component support, Tailwind with the expected theme tokens, a cn utility, Lucide React, and equivalent alert, badge, button, card, progress, and tooltip primitives backed by the required Radix packages. Update the source aliases to match your project.

Source and credit

This page is a review, not a copy. The component source lives with its author and this site does not republish it. Read the license before you use anything.

License
MIT
Record published
2026-08-17

Alternatives

Other published entries for the form pattern, ordered by what they measured: mounts first, then clean axe scans, then bare-mode passes, then the smaller bundle.