GraphQuota

Import

svelte
import { GraphQuota } from 'markgraphy';

Basic usage

svelte
<GraphQuota
  title="example"
  used={0}
  limit={0}
/>
[ example ]

0 / 0

0%

pace
Used 0 of 0, 0 percent of quota .

Props

PropTypeDefaultDescription
titlestring
usednumber
limitnumber
unit?stringUnit label, e.g. “API calls” or “GB”.
resets?stringOptional reset label, e.g. “Oct 1” or “in 4 days”.
daysInto?numberDays elapsed in the current window. Enables the projection.
daysTotal?numberWindow length in days.
format?(n: number) => stringOptional number formatter. Defaults to thousands-grouped.
caption?stringOptional caption below the panel.
corner?string
class?string''

Exported types

  • GraphQuotaProps