Coverage table — Features block

Pro

features-coverage-table · for landing, home pages

Coverage table

One table, a row per country with languages, currencies, payment and shipping side by side: a visitor who needs to compare precisely

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/features-coverage-table

Usage

Its demo data, shortened (Using blocks).

<script setup lang="ts">
import FeaturesCoverageTable from '@/components/trame/blocks/features/features-coverage-table.vue'

const props = {
title: "Wherever you sell, we’re already there",
intro: "Languages, currencies, payment methods and shipping: what’s available, country by country.",
regions: [
{
name: "Europe",
countries: [
{
name: "France",
code: "FR",
languages: [
"French"
],
currencies: [
"EUR"
],
payments: [
"Card",
"Bank transfer"
],
shipping: "1–3 days"
},
{
name: "Belgium",
code: "BE",
languages: [
"French",
"Dutch"
],
currencies: [
"EUR"
],
payments: [
"Card",
"Bank transfer"
],
shipping: "2–4 days"
}
]
},
{
name: "North America",
countries: [
{
name: "Canada",
code: "CA",
languages: [
"French",
"English"
],
currencies: [
"CAD"
],
payments: [
"Card"
],
shipping: "5–8 days"
},
{
name: "United States",
code: "US",
languages: [
"English"
],
currencies: [
"USD"
],
payments: [
"Card"
],
shipping: "5–9 days"
}
]
}
],
cta: {
label: "Request a country",
action: "contact"
},
options: {
eyebrow: "Coverage",
note: "Missing a country? Write to us and we’ll get back to you."
}
}
</script>

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

Props

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

PropTypeDescription
title*stringWordsthe section’s title, an h2 ("Wherever you sell, we are already there")
introstringWordsone or two sentences about the coverage
regions*Region[]the regions covered, each with its countries
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
Region regions[] · 2 props
PropTypeDescription
name*stringWordsa continent or a region ("Europe")
countries*Country[]the countries covered in this region
Country regions[].countries[] · 7 props
PropTypeDescription
name*stringWordsthe country
codestringWordsits ISO code ("FR")
languagesstring[]Wordsa language the product speaks there
currenciesstring[]Wordsa currency code ("EUR")
paymentsstring[]Wordsa payment method available there
shippingstringWordswhat shipping there looks like, as the merchant knows it ("2 to 4 days")
notestringWordsanything the visitor should know ("Local VAT included")
Cta cta · 3 props
PropTypeDescription
label*stringWordswhat happens ("Request a country")
action*stringActiona named action of the page
recordRecord<string, unknown>Datathe record the action opens, if any
Options options · 4 props
PropTypeDescription
eyebrowstringWordsa label above the title ("Cover")
searchLabelstringWordsthe search field’s label ("Search for a country")
notestringWordsa line under the list ("A country missing? Write to us.")
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 features section, for landing, home pages; it uses @lucide/vue, @vueuse/core, class-variance-authority, clsx, motion, reka-ui, tailwind-merge.

More features blocks

  • Carousel side heading: 4 to 8 features after a heading column that stays beside the rail, numbered and open: a long list to browse without a heavy page.
  • Chapters bands: the same stages as a calm editorial sequence, each opening on a ruled header row and one full-bleed picture with its features in an even row below: when every stage has a strong wide picture, and on dark or brand bands.
  • Chapters spy index: a large product told stage by stage on a light page: a sticky numbered index of the stages lights up the one in view beside its words and a grid of feature cards (a pill row on a phone), for visitors who scan and jump.
  • Grid cards: benefits in bordered cards, the closing action filling the last empty cell: a firmer grid.
  • Grid icons open: 3 or 6 benefits with no card, an icon above each title: the quiet default.
  • Grid inverse panel: the whole grid on one dark rounded panel: the single bold moment of a page.
  • Measured composition stacked: Composition of a total beside its supplied comparison; the merchant’s own only.
  • Meter list bars: Labelled measurements with a shared scale per row; the merchant’s own only.

All 45 features blocks