@hanzo/ui

Fact

import { Fact } from '@hanzo/ui/product'

No examples yet.

Types

export type FactProps = {
  /** The row's left-hand label. */
  label: string
  /** The row's right-hand value. A string renders in the value color and
   *  weight; anything else (a badge, a link, a stack of controls) renders as
   *  given. */
  value: ReactNode
  /** Render a string value in the monospace face — an id, a hash, a path. */
  mono?: boolean
  /**
   * `row` (default) is the property-list row. `metric` is the record kit's
   * metric row (MetricRow, MIT — NOTICE): no rule, a 24px floor,
   * 12px medium, the label quiet beside an optional icon, the value at the end,
   * and an optional progress ring that the value labels.
   */
  variant?: 'row' | 'metric'
  /** `metric`: an icon before the label. */
  startIcon?: ReactNode
  /** `metric`: a 14px ring at the end, 0–100 or `null` for indeterminate. */
  progress?: number | null
  /** `metric`: the ring's colour. */
  progressColor?: string
  /** `metric`: the ring's accessible value, when the value text is not it. */
  progressValueText?: string
}

Exports

Facttype FactProps