TinyBase logoTinyBase β

MetricProps

MetricProps props are used for components that refer to a single Metric in a Metrics object, such as the MetricView component.

{
  metricId: Id;
  metrics?: MetricsOrMetricsId;
  debugIds?: boolean;
}
TypeDescription
metricIdId

The Id of the Metric in the Metrics object to be rendered.

metrics?MetricsOrMetricsId

The Metrics object to be accessed: omit for the default context Metrics object, provide an Id for a named context Metrics object, or provide an explicit reference.

debugIds?boolean

Whether the component should also render the Id of the Metric to assist with debugging.

Since

v1.0.0