Skip to content
All blocks

[08] Marketing

Stats Band

A heading over four large numbers with their labels, separated by thin lines.

1280px

Copy the code

One file with one component and its sample data. It needs @vaneui/ui and its stylesheet, set up as in the installation guide.

stats-band.tsx

import { Col, Container, Grid4, Section, SectionTitle, Text, Title } from "@vaneui/ui";
const stats = [
{ value: "12,000+", label: "teams plan their work in Acme" },
{ value: "99.98%", label: "uptime over the last 12 months" },
{ value: "4.8/5", label: "average rating from 2,300 reviews" },
{ value: "35", label: "countries, with support in 9 languages" },
];
export function StatsBand() {
return (
<Section>
<Container itemsStretch>
<Col xl>
<Col className="max-w-2xl">
<SectionTitle className="text-balance">Teams of every size run on Acme</SectionTitle>
<Text lg secondary>From five-person startups to companies with offices in a dozen countries.</Text>
</Col>
<Grid4 lg className="max-tablet:grid-cols-2">
{stats.map((s) => (
<Col key={s.value} xs borderT paddingY>
<Title xl tag="p" className="tabular-nums">{s.value}</Title>
<Text secondary>{s.label}</Text>
</Col>
))}
</Grid4>
</Col>
</Container>
</Section>
);
}

How it adapts

  • 1024px and up: four numbers in a row.
  • Below 1024px: two numbers per row, with lines between the rows too.
  • The numbers use tabular figures, so digits line up.

How these props work is in responsive page sections without breakpoint classes.

Adapt it with your coding agent

Add the VaneUI MCP server, and your agent reads the component docs and prop tables while it changes the block: the copy, the sample data or the layout.

$ claude mcp add vaneui -- npx -y @vaneui/mcp

Setup for other editors is in the AI assistants guide.