Brand figures facts band — Stats block

Pro

stats-brand-figures-facts-band · for about, home pages

Brand figures facts band

The story centred above a full-width band of large facts, the values as a line under it: when the figures are the proof

Documentation

Installation

One command copies the block into your project with the shadcn CLI (the registry is set once: Installation).

pnpm dlx shadcn-vue@latest add @trame/stats-brand-figures-facts-band

Usage

Its demo data, shortened (Using blocks).

<script setup lang="ts">
import StatsBrandFiguresFactsBand from '@/components/trame/blocks/stats/stats-brand-figures-facts-band.vue'

const props = {
eyebrow: "Our story",
title: "Bags and textiles made to last, sewn a few streets from here.",
body: [
"The workshop started from a simple observation: the bags we buy wear out before we grow attached to them. We design a small number, cut and assemble them ourselves, and repair them when they come back.",
"Every design is tested for several months before it reaches the shop. The ones that don’t hold up are never sold."
],
facts: [
{
value: "2012",
label: "the workshop opens"
},
{
value: "6",
label: "people cutting and sewing"
}
],
values: [
"Handmade",
"Traceable materials"
],
cta: {
label: "Visit the workshop",
action: "page",
record: {
id: "atelier"
}
}
}
</script>

<template>
<StatsBrandFiguresFactsBand v-bind="props" />
</template>

Props

Each prop says who changes it: Words, Picture, Action, Design, Data.* required.

PropTypeDescription
eyebrowstringWordswhat this is ("Our story", "The workshop")
title*stringWordswho the brand is, in one sentence, as the merchant would say it
body*string[]Wordsone paragraph of the merchant’s own words
facts*Fact[]two to four facts that are true: never estimated, never invented
valuesstring[]Wordsa short value or trait ("Handmade", "Leather tanned in France")
ctaCtathe call to action: its words and the page action it runs
optionsOptionsthe block’s settings: layout choices and secondary words, read by every variant
Fact facts[] · 2 props
PropTypeDescription
value*stringWordsthe figure or year exactly as the merchant states it ("2012", "14")
label*stringWordswhat it counts ("years at the bench")
Cta cta · 3 props
PropTypeDescription
label*stringWordswhat happens ("Discover the workshop")
action*stringActiona named action of the page
recordRecord<string, unknown>Datathe record the action opens, if any
Options options · 1 props
PropTypeDescription
mood'inverse' | 'brand' | 'warm' | 'tint' | stringa band of the page that redefines the theme surfaces inside it
What it asks your app for

The block never knows your app: it asks it, through one context provided once, where its links lead, what its actions do, how a price reads and which words to say (The host context).

MemberWhat it is for
hrefthe address an action leads to, or null to hide what leads there
actruns a change (subscribe, add to cart, save) and answers { ok } or { ok: false, error }
canwhether the page has this action
Linkyour router’s link component
cartCountthe cart badge’s number
cartDrawerwhether your app has a cart drawer
cartOpenwhether the cart drawer is open
labelyour word for an interface key, or undefined to keep the block’s own

The words it says itself, in English and French; label(key) replaces any of them:

KeyEnglishFrench
newsletter.alreadyYou are already subscribed.Vous êtes déjà inscrit.
newsletter.doneDone: you are subscribed.C’est noté : vous êtes inscrit.
newsletter.invalidCheck the email address.Vérifiez l’adresse e-mail.
newsletter.tooManyToo many attempts, try again in a moment.Trop de tentatives, réessayez dans un moment.

Features

  • Every word in the server HTML
  • Same markup in Vue and React
  • Theme tokens only: every theme, light and dark
  • Shows what you give it, invents nothing
  • Subtle motion: one short reveal; still under reduced motion
  • Real buttons and links, a visible focus
  • Asks your app through actions: cta

A stats section, for about, home pages; it uses class-variance-authority, clsx, motion, reka-ui, tailwind-merge.

More stats blocks

  • Benchmarks before after bars: Paired measurements with a common scale and explicit labels; the merchant’s own only.
  • Benchmarks funnel: Ordered step values with a reference marker, without inferred conversion rates; the merchant’s own only.
  • Benchmarks table: A compact comparison table with the current column highlighted; the merchant’s own only.
  • Benchmarks trend: Two measured series plotted in order with a full data table; the merchant’s own only.
  • Impact ledger breakdown bar: one stacked bar of shares with a legend and an explanation per share: what happens to returns, where the money goes.
  • Impact ledger commitments timeline: dated promises with the merchant’s own status on each: commitments kept, ongoing or late.
  • Impact ledger rules grid: numbered cards saying how the figures are counted: gives credibility to the numbers above it.
  • Impact ledger: rows of label and value grouped by topic with a method footnote: carbon, repair, donations, sourcing figures.

All 20 stats blocks