Rate table — Storefront block

Pro

storefront-rate-table · for landing, home, catalog, account pages

Rate table

A grid of the merchant’s own rates (shipping by zone, repair pricing): rows against columns, stacked cards on a phone

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-rate-table

Usage

Its demo data, shortened (Using blocks).

<script setup lang="ts">
import StorefrontRateTable from '@/components/trame/blocks/storefront/storefront-rate-table.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.",
columns: [
"Zone",
"Cost"
],
rows: [
[
"Contiguous US",
"$4.90"
],
[
"Alaska and Hawaii",
"$8.90"
]
],
footnote: "Rates as of March 1, 2026. They may change for future orders, never for an order already paid."
}
</script>

<template>
<StorefrontRateTable 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
columnsstring[]Wordsthe headings of the rate table and the glossary
rows*string[][]Datathe rate table: one array of cells per row, the first cell is the row’s name; the merchant’s own rates
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
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
  • Reads rows from your app

A storefront section, for landing, home, catalog, account pages.

More storefront blocks

  • Promo split: the offer’s picture beside its words, its code and its end: a full offer told calmly; the merchant’s own only.
  • Protection choice rows: three choices in radio rows, each saying what it adds, with the total: a protection or a service offered with a product.
  • Quick estimate estimator: a quick estimate from the merchant’s own grid: a few choices, one large figure, the rule it uses written beside it.
  • Quick order table: a trade buyer who knows what they want: every reference in a table, a quantity per line, the total running.
  • Rating criteria bars: a product rated by several criteria: the overall note and one labelled bar per criterion; the merchant’s own only.
  • Rating link inline: a buy box that is already full: just the stars and the count beside the title, linking to the reviews.
  • Recent purchases card and counts: the corner card above a thin strip of the figures the shop measures (people viewing, sold today); on a phone the strip alone, the card on tap: a busy product page with real live figures; counts only when measured, orders real and never looped.
  • Recent purchases corner card: a small card in a bottom corner, thumbnail, "Camille in Lyon ordered …" and the time, stepped by the visitor only: discreet proof on a home or product page; the merchant’s real orders only, anonymised, never advancing on its own nor looped.

All 409 storefront blocks