Component libraryUsage limits
Usage limits
ProPlan consumption, reset dates and allowances with exact values and clear limit states.
npx shadcn@latest add @tidal-pro/usage-limitsInstallation
Pro source is gated. Configure the @tidal-pro registry using the agent guide. Create an access key from your account after purchasing.
Terminal
Import components/ui/tidal.css, components/ui/usage-limits.css, components/ui/meter.css, components/ui/status-badge.css, then add the component inside a tidal-scope wrapper. Its scoped design tokens keep it independent of your existing CSS.
Usage
Complete example source · Dependency and asset manifest
Loading the complete example…
API & behavior
Consumer-owned metrics require stable IDs and labels. Metered metrics provide finite nonnegative value/limit numbers for geometry and exact valueText/limitText for display; unlimited metrics provide valueText; unknown metrics may provide a message. Positive limits use the native Meter, zero limits omit its range and show no allowance or exceeded state. Invalid numeric inputs render unavailable without a fabricated amount. warningAt is a clamped0–1 ratio defaulting0.8. Optional description, reset label/dateTime and action per metric; optional outer action, emptyMessage, bounded headingLevel and native section attributes/ref. Exact supplied text remains authoritative while visual meter values clamp to their valid range. Consumers own billing, quotas, reset schedules, arithmetic/formatting and upgrades; no requests or billing changes are made.
Style with the --t-* CSS variables. Set data-theme="dark" on your tidal-scope wrapper for a dark surface. Motion respects the system’s reduced-motion preference.