Skip to main content Home About the Design SystemRoadmap OverviewDesignersDevelopers OverviewColorGridIconographyInteractionsSpacingTypography Overview Global colorBox shadowTypographyBorderOpacitySpaceLengthIconBreakpointsMedia queries All elements Accordion Alert Announcement Audio player Avatar Back to top Badge Blockquote Breadcrumb Button Card Chip Code block Call to action Dialog Disclosure Footer Health index Icon Jump links Menu dropdown Navigation link Navigation (primary) Navigation (secondary) Navigation (vertical) Pagination PopoverPlanned Progress stepper Scheme toggle Site status Skeleton Skip link Spinner Statistic Subnavigation Surface Switch Table Tabs Tag Tile Timestamp Tooltip Video embed OverviewColor PalettesCustomizingDevelopers All PatternsAccordionCall to ActionCardFilterFormLink with iconLogo wallSearch barSticky bannerSticky cardTabsTagTile All Personalization PatternsAnnouncement FundamentalsAccessibility toolsAssistive technologiesCI/CDContentContributorsDesignDevelopmentManual testingResourcesScreen readers Design/code status Release notes Get support

Statistic

OverviewStyleGuidelinesCodeAccessibilityDemos
StatisticColor ContextIcon SlotIcon SvgIconLargeSlotted ContentStatisticColor ContextIcon SlotIcon SvgIconLargeSlotted Content

Statistic

import '@rhds/elements/rh-stat/rh-stat.js';
<rh-stat>
  <span slot="statistic">Statistic Placeholder</span>
  <span>Description Placeholder</span>
</rh-stat>

Color Context

import '@rhds/elements/rh-stat/rh-stat.js';
import '@rhds/elements/lib/elements/rh-context-demo/rh-context-demo.js';
<rh-context-demo>
  <rh-stat>
    <svg slot="icon" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 36 36">
      <path d="M17.37 8v10a.63.63 0 0 0 1.25 0V8a.63.63 0 0 0-1.25 0Zm7 0v7a.63.63 0 0 0 1.25 0V8a.63.63 0 0 0-1.25 0Zm-14 0v12a.63.63 0 0 0 1.25 0V8a.63.63 0 0 0-1.25 0ZM31 17.89a.63.63 0 0 0-.63.62v11.87H5.62v-2.93a.63.63 0 0 0-1.25 0V31a.63.63 0 0 0 .63.62h26a.62.62 0 0 0 .62-.62V18.51a.62.62 0 0 0-.62-.62Z"></path>
      <path d="M5 21a.63.63 0 0 0 .62-.63V5.62h24.75V9a.63.63 0 0 0 1.25 0V5a.62.62 0 0 0-.62-.62H5a.63.63 0 0 0-.63.62v15.36A.63.63 0 0 0 5 21Zm27.35-9.24a.62.62 0 0 0-.87.17C28.73 16 21.5 22.93 4 23.27a.63.63 0 0 0 0 1.25c18.07-.34 25.64-7.61 28.52-11.9a.62.62 0 0 0-.17-.86Z"></path>
    </svg>
    <span slot="statistic">Statistic Placeholder</span>
    <span>Description Placeholder</span>
  </rh-stat>
</rh-context-demo>

Icon Slot

import '@rhds/elements/rh-icon/rh-icon.js';
import '@rhds/elements/rh-stat/rh-stat.js';
<rh-stat>
  <rh-icon icon="code" slot="icon"></rh-icon>
  <span slot="statistic">Statistic Placeholder</span>
  <span>Description Placeholder</span>
</rh-stat>

Icon Svg

import '@rhds/elements/rh-icon/rh-icon.js';
import '@rhds/elements/rh-stat/rh-stat.js';
<rh-stat>
  <rh-icon slot="icon" icon="experimental"></rh-icon>
  <span slot="statistic">Statistic Placeholder</span>
  <span>Description Placeholder</span>
</rh-stat>

Icon

import '@rhds/elements/rh-stat/rh-stat.js';
<rh-stat icon="code">
  <span slot="statistic">Statistic Placeholder</span>
  <span>Description Placeholder</span>
</rh-stat>

Large

import '@rhds/elements/rh-stat/rh-stat.js';
<rh-stat size="large" icon="code">
  <span slot="statistic">Statistic Placeholder</span>
  <span>Description Placeholder</span>
</rh-stat>

Slotted Content

import '@rhds/elements/rh-icon/rh-icon.js';
import '@rhds/elements/rh-stat/rh-stat.js';
<rh-stat top="statistic">
  <rh-icon slot="icon" icon="code" set="ui"></rh-icon>
  <span slot="title">Overwrite Title</span>
  <p>Stat body that includes two lines and a footnote.</p>
  <span slot="statistic">Overwrite Statistic</span>
</rh-stat>
© 2025 Red Hat Deploys by Netlify