@hanzo/ui

UsageMeter

import { UsageMeter, STATE_COLOR } from '@hanzo/ui/product'

No examples yet.

Types

export interface UsageMeterProps {
  limits: Limits
  /** Which classes to draw, in order; those the limits do not name are skipped. */
  classes?: readonly LimitClass[]
  /** `sm` for a composer's foot, `md` for a page. */
  size?: 'sm' | 'md'
  /** The clock resets are read against; tests pin it. */
  now?: number
}

Exports

UsageMeterSTATE_COLORtype UsageMeterProps