Ageing stages row — Storefront block

Pro

storefront-ageing-stages-row · for article, product, home pages

Ageing stages row

How a choice ages, in four moments from the first week to the fifth year: a break-in or durability story

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/storefront-ageing-stages-row

Usage

Its demo data, shortened (Using blocks).

<script setup lang="ts">
import StorefrontAgeingStagesRow from '@/components/trame/blocks/storefront/storefront-ageing-stages-row.vue'

const props = {
title: "How does a rib of beef change in our ageing cellar?",
lead: "Chef Ana Ruiz tastes every rib in the Ember & Rye cellar each week. Here’s what she finds.",
stages: [
{
label: "Day 1",
text: "The rib goes into the cellar bright red and firm, smelling only of fresh beef."
},
{
label: "Day 14",
text: "A dry crust forms outside; inside, the meat turns tender and deepens in color."
}
],
footnote: "Ageing times are what our cellar ran last winter, at 34°F and 80% humidity.",
options: {
eyebrow: "From the kitchen"
}
}
</script>

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

Props

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

PropTypeDescription
title*stringWordsthe question the stages answer ("How does this bag age?")
leadstringWordsone or two sentences saying how the merchant judged
stages*Stage[]the stages, in order, e.g. "Week 1"
footnotestringWordswhere a figure comes from, or what the judgement leaves out
optionsOptionsthe block’s settings: layout choices and secondary words, read by every variant
Stage stages[] · 2 props
PropTypeDescription
label*stringWordsthe moment ("Week 1", "Year 5")
text*stringWordswhat to expect then
Options options · 2 props
PropTypeDescription
eyebrowstringWordswhat kind of advice it is ("Our view")
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
labelyour word for an interface key, or undefined to keep the block’s own

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

A storefront section, for article, product, home pages; it uses clsx, motion, tailwind-merge.

More storefront blocks

  • Address check side by side: Compare the entered address with a postal service suggestion at equal prominence.
  • Address check stacked: Stack the two addresses in a narrow checkout column, keeping both choices available.
  • Adjusted cart with adjustment: when something besides the lines moves the price (a trade-in credit, import duties): a card explains it in numbered steps above the summary.
  • Advice questions: 3 or 4 yes/no questions, each opening its advice (details, no script): a short questionnaire in the page.
  • Alone or bundle versus: two columns, the product alone and the whole bundle, the bundle larger: a set sold at a real saving.
  • Archive figures numbers: Supplied figures and a period chart above the archive entries; the merchant's own measures only.
  • Archive shelf cards status: Material cards with a specification and a status beside the picture; the merchant's own archive only.
  • Archive shelf changelog: Versioned rows beside enduring notes for an evolving range; the merchant's own history only.

All 409 storefront blocks