Skip to content

Component gallery

  1. Content
  2. Stats

Primitives

  • Buttons30
  • Badges21
  • Keys4
  • Status8
  • Avatars8
  • Alerts4
  • Cards10
  • Dropdowns4
  • Corner windows3
  • Dialogs7
  • Windows4
  • Taskbar1
  • Launcher1
  • Desk icons1
  • Progress8
  • Scroll cues2

Forms

  • Toggles5
  • Selects3
  • Inputs8
  • Textareas7
  • Segmented controls4
  • Attachments18

Content

  • Quotes5
  • Stats5
  • Heatmap3
  • Icon lists2
  • Masonry2
  • Accordion2
  • Code8
  • Contact methods7

Chat

  • Messages22
  • Posts29

Showcase

  • Media cards4
  • Logos1
  • 88x31s15
  • Carousel3
  • Blueprint frames2
  • Card grids3

Media

  • Figures4
  • Audio player4
  • Media player3
  • Radio5
  • Shorts2

Toys

  • Terminal4
  • Destructor1
  • Status board7

Sections

  • Section3
  • Side hero2
  • Navbar5
  • Footer1
  • Sidebar2

Display

ThemeT
Mode
Mode
M
Style
Style
Y
Spacing
Spacing
Radius
Radius
Font size
Font size
Compare
Compare
Effects
S

ShortcutsAlt+Shift+key

Components

Primitives

  • Buttons30
  • Badges21
  • Keys4
  • Status8
  • Avatars8
  • Alerts4
  • Cards10
  • Dropdowns4
  • Corner windows3
  • Dialogs7
  • Windows4
  • Taskbar1
  • Launcher1
  • Desk icons1
  • Progress8
  • Scroll cues2

Forms

  • Toggles5
  • Selects3
  • Inputs8
  • Textareas7
  • Segmented controls4
  • Attachments18

Content

  • Quotes5
  • Stats5
  • Heatmap3
  • Icon lists2
  • Masonry2
  • Accordion2
  • Code8
  • Contact methods7

Chat

  • Messages22
  • Posts29

Showcase

  • Media cards4
  • Logos1
  • 88x31s15
  • Carousel3
  • Blueprint frames2
  • Card grids3

Media

  • Figures4
  • Audio player4
  • Media player3
  • Radio5
  • Shorts2

Toys

  • Terminal4
  • Destructor1
  • Status board7

Sections

  • Section3
  • Side hero2
  • Navbar5
  • Footer1
  • Sidebar2

Content · 2 of 8

Stats

Counts up on first scroll into view, with JS.

packages/ui/src/astro/blocks/stat.astro5 storiesanimated

Preview settings
Width
Preview width
Stage
Stage
default
Props of default
<Stat value={12480} label="Downloads" />
Open stat/default on its own

12,48012,480

Downloads

prefix
Props of prefix
<Stat value={1.2} prefix="$" suffix="M" label="Spent on kebab this year" tone="secondary" />
Open stat/prefix on its own

$1.2M$1.2M

Spent on kebab this year

percent
Props of percent
<Stat value={99.95} suffix="%" label="Uptime over the last 90 days" tone="success" />
Open stat/percent on its own

99.95%99.95%

Uptime over the last 90 days

decimals
Props of decimals
<Stat value={4} decimals={1} suffix="/5" label="Average rating, from a long list of reviewers that wraps" tone="warning" />
Open stat/decimals on its own

4.0/54.0/5

Average rating, from a long list of reviewers that wraps

inline
Props of inline
<Stat value={4.1} suffix="k" inline />
Open stat/inline on its own
4.1k4.1k
PreviousQuotesNextHeatmap