Condition grades grade scale — Storefront block

Pro

storefront-condition-grades-grade-scale · for landing, home, catalog, account pages

Condition grades grade scale

A grading of used or restored goods: each grade in plain words with its price band

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-condition-grades-grade-scale

Usage

Its demo data, shortened (Using blocks).

<script setup lang="ts">
import StorefrontConditionGradesGradeScale from '@/components/trame/blocks/storefront/storefront-condition-grades-grade-scale.vue'

const props = {
title: "International shipping",
lead: "We ship from the United States to 28 countries. The rates and delivery times below are the shop’s own.",
grades: [
{
label: "Like new",
text: "No signs of use, original packaging.",
price: "80–90% of the new price"
},
{
label: "Very good",
text: "Light signs of use, visible up close.",
price: "60–75%"
}
],
prices: [
{
currency: "USD",
amount: 13900
},
{
currency: "EUR",
amount: 12900
}
],
footnote: "Rates in effect as of March 1, 2026. They may change for future orders, never for an order already paid."
}
</script>

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

Props

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

PropTypeDescription
title*stringWordsthe service or policy, said plainly ("International delivery", "Repairs")
leadstringWordswhat this page tells, in one or two sentences
grades*Grade[]the condition grades, each with what it means, e.g. "Like new"
pricesPrice[]Dataone price listed by the merchant in each currency it sells in; never converted by the block
footnotestringWordsa small closing line, the merchant’s own words (the rounding, the date of the rates)
optionsOptionsthe block’s settings: layout choices and secondary words, read by every variant
Grade grades[] · 3 props
PropTypeDescription
label*stringWordsthe grade ("Like new")
text*stringWordswhat it means in plain words
pricestringDataits price band as the merchant sets it ("60 to 70% of the new price")
Price prices[] · 2 props
PropTypeDescription
currency*stringISO 4217
amount*numberthe price in cents in that currency, as the merchant lists it
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
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 landing, home, catalog, account pages.

More storefront blocks

  • Collection poster overlay: a full-bleed picture with the collection’s name set huge over it and its pieces in a ribbon along the bottom: the season’s one big statement.
  • Collection spec sheet hero then specs: a technical collection: an opening picture, one grid of every product, the merchant’s figures and a quote they supplied.
  • Collection story alternating split: a brand family or a maker series: picture and words swap sides chapter after chapter, a product strip under each.
  • Collection story chapters with rail: a seasonal or campaign edit told in full-width picture chapters, each followed by its three or four products.
  • Configurable purchase stacked: a modular product (a sofa, a bike, a shelf): each step chooses a part, and the price adds the choices to the product’s price.
  • Contact sheet: up to a dozen small numbered frames, the kept ones outlined, with a count under: the story of a shoot, honestly told.
  • Corporate gifting: companies order in numbers: the offer and its terms, a contact button instead of a form.
  • Criteria reviews answers aside: each review a two-column row, the reviewer and their scale answers on the left, the words and photos on the right, the aggregate scales in a header band: clothes, shoes and gear where fit and comfort decide; the merchant’s own stored reviews only.

All 409 storefront blocks