Skip to content

API Reference

Catalog metadata for this block. Install copies the source into your project.

npx cronus-ui add usage-dashboard
Skip Usage Dashboard fields table
FieldTypeDefaultDescription
slug*
string"usage-dashboard"Registry item id. Passed to cronus-ui add.
name*
string"Usage Dashboard"Display name shown in the gallery.
description*
string"A usage analytics panel with metric cards, trend sparklines, quota meters, and a top-resources table."Short summary of what the block covers.
variants
{ id: string; name: string; description: string }[]["overview", "period", "empty"]Alternate layouts. Install a look with npx cronus-ui add <slug>--<id>. Omitted when the block has a single default.

Variants

Every published look for this block.

Skip Usage Dashboard variants table
IdNameDescription
overviewOverviewMetric cards, quota meters, and a top-resources table for the current cycle.
periodPeriod toggleLast 30 days versus this billing cycle, with a segmented period control.
emptyEmptyThe same meters at zero, with no usage recorded yet.