Veil UI
Components

Stats Section

A band of headline metrics with labels and captions.

Installation

$ npx veil-ui@latest add stats-section

Usage

import { StatsSection } from "@/components/ui/stats-section";

<StatsSection
  stats={[
    { value: "120k+", label: "Downloads" },
    { value: "480+", label: "Components" },
  ]}
/>;

Examples

Basic

Developer adoption

Numbers from teams shipping with Veil UI.

120k+
Downloads
480+
Components
99.9%
Uptime
4.9/5
Satisfaction

Compact

12ms
Median render
0
Runtime deps
AA
Contrast

API reference

The package exports stats-section along with its composable parts. It forwards standard attributes to its root element; see the examples above for the component-specific props.

Accessibility

  • Pages keep a single h1 in the hero and use h2/h3 for section hierarchy.
  • Call-to-action elements are real links or buttons with discernible labels.
  • Decorative icons are aria-hidden and meaningful images require alt text.

Vue and plain HTML

This component also ships for Vue (Reka UI) and plain HTML. Install it with npx veil-ui add stats-section --framework vue or switch the framework in components.json.

<template>
<div data-slot="stats-section" class="rounded-xl border bg-muted/20 px-6 py-10 text-center w-full max-w-5xl"><h2 class="text-2xl font-semibold tracking-tight">Developer adoption</h2><p class="mx-auto mt-2 max-w-xl text-sm text-muted-foreground">Numbers from teams shipping with Veil UI.</p><dl class="mx-auto mt-8 grid max-w-4xl grid-cols-2 gap-6 sm:grid-cols-4"><div><dd class="text-3xl font-semibold tracking-tight">120k+</dd><dt class="mt-1 text-xs font-medium uppercase tracking-wide text-muted-foreground">Downloads</dt></div><div><dd class="text-3xl font-semibold tracking-tight">480+</dd><dt class="mt-1 text-xs font-medium uppercase tracking-wide text-muted-foreground">Components</dt></div><div><dd class="text-3xl font-semibold tracking-tight">99.9%</dd><dt class="mt-1 text-xs font-medium uppercase tracking-wide text-muted-foreground">Uptime</dt></div><div><dd class="text-3xl font-semibold tracking-tight">4.9/5</dd><dt class="mt-1 text-xs font-medium uppercase tracking-wide text-muted-foreground">Satisfaction</dt></div></dl></div>
</template>

On this page