Coverage table — Features block
Profeatures-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-tableUsage
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.
| Prop | Type | Description |
|---|---|---|
| title* | string | Wordsthe section’s title, an h2 ("Wherever you sell, we are already there") |
| intro | string | Wordsone or two sentences about the coverage |
| regions* | Region[] | the regions covered, each with its countries |
| cta | Cta | the call to action: its words and the page action it runs |
| options | Options | the block’s settings: layout choices and secondary words, read by every variant |
Region regions[] · 2 props
| Prop | Type | Description |
|---|---|---|
| name* | string | Wordsa continent or a region ("Europe") |
| countries* | Country[] | the countries covered in this region |
Country regions[].countries[] · 7 props
| Prop | Type | Description |
|---|---|---|
| name* | string | Wordsthe country |
| code | string | Wordsits ISO code ("FR") |
| languages | string[] | Wordsa language the product speaks there |
| currencies | string[] | Wordsa currency code ("EUR") |
| payments | string[] | Wordsa payment method available there |
| shipping | string | Wordswhat shipping there looks like, as the merchant knows it ("2 to 4 days") |
| note | string | Wordsanything the visitor should know ("Local VAT included") |
Cta cta · 3 props
| Prop | Type | Description |
|---|---|---|
| label* | string | Wordswhat happens ("Request a country") |
| action* | string | Actiona named action of the page |
| record | Record<string, unknown> | Datathe record the action opens, if any |
Options options · 4 props
| Prop | Type | Description |
|---|---|---|
| eyebrow | string | Wordsa label above the title ("Cover") |
| searchLabel | string | Wordsthe search field’s label ("Search for a country") |
| note | string | Wordsa line under the list ("A country missing? Write to us.") |
| mood | 'inverse' | 'brand' | 'warm' | 'tint' | string | a 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).
| Member | What it is for |
|---|---|
| href | the address an action leads to, or null to hide what leads there |
| act | runs a change (subscribe, add to cart, save) and answers { ok } or { ok: false, error } |
| can | whether the page has this action |
| Link | your router’s link component |
| cartCount | the cart badge’s number |
| cartDrawer | whether your app has a cart drawer |
| cartOpen | whether the cart drawer is open |
| label | your 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:
| Key | English | French |
|---|---|---|
| newsletter.already | You are already subscribed. | Vous êtes déjà inscrit. |
| newsletter.done | Done: you are subscribed. | C’est noté : vous êtes inscrit. |
| newsletter.invalid | Check the email address. | Vérifiez l’adresse e-mail. |
| newsletter.tooMany | Too 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.