Product trust facts list — Storefront block
Prostorefront-product-trust-facts-list · for product, cart pages
Product trust facts list
Icon lines under the buy button, one fact per line: the usual place for delivery, returns and guarantee
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-product-trust-facts-listUsage
Its demo data, shortened (Using blocks).
<script setup lang="ts">
import StorefrontProductTrustFactsList from '@/components/trame/blocks/storefront/storefront-product-trust-facts-list.vue'
const props = {
items: [
{
value: "Free shipping",
label: "on orders of $60 or more, in 2 to 4 business days",
icon: "truck",
action: "page",
record: {
id: "livraison"
}
},
{
value: "30 days",
label: "to change your mind, free returns",
icon: "return",
action: "page",
record: {
id: "retours"
}
}
]
}
</script>
<template>
<StorefrontProductTrustFactsList v-bind="props" />
</template>Props
Each prop says who changes it: Words, Picture, Action, Design, Data.* required.
| Prop | Type | Description |
|---|---|---|
| items* | Item[] | two to four facts; more are trimmed to four |
| options | Options | the block’s settings: layout choices and secondary words, read by every variant |
Item items[] · 5 props
| Prop | Type | Description |
|---|---|---|
| value | string | Wordsthe fact’s figure or key words ("30 days", "Free"); optional |
| label* | string | Wordswhat it is ("to change your mind"), the shop’s own policy |
| icon | string | Designtruck | return | shield | package | clock | leaf | lock | gift | star | check; check when absent |
| action | string | Actionthe policy page it links to |
| record | Record<string, unknown> | Datathe record the action opens, if any |
Options options · 1 props
| Prop | Type | Description |
|---|---|---|
| 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
- No motion; still under reduced motion
- Real buttons and links, a visible focus
- Asks your app through actions:
items[]
A storefront section, for product, cart pages; it uses @lucide/vue.
More storefront blocks
- Product story immersive: a full-width hero picture with the story in tabs and the buy panel raised below it: a product with one strong photograph and more to tell.
- Product story sticky story: pictures and short paragraphs scroll beside a buy card that stays in view: a craft or premium product with something to tell.
- Product test results scored list: a product the merchant tested (weather, wear, battery): scenarios with a five-dot score and the result in words.
- Product transformation slider: a product that transforms something (a stain, a repair, a finish): the list beside a before-after slider.
- Product upgrade comparison: the product they have beside the one a step up, the differences in bold, keep or trade up: a considered upgrade.
- Products by date headed: products grouped under small headings by date (this week, last week): new arrivals told as they came; the merchant’s own products and figures only.
- Promo code field card: a titled card at the top of the order summary: shops where codes are common and the field should be seen at once.
- Promo code field collapsed: a quiet "Promo code" link that opens the field: the default, so the cart does not tempt a visitor to go hunting for coupons.