Promises pillars — Trust and logos block
Protrust-promises-pillars · for home, product, cart, checkout pages
Promises pillars
Three or four centered pillars with a large round icon: the home’s reassurance; the merchant’s own only
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/trust-promises-pillarsUsage
Its demo data, shortened (Using blocks).
<script setup lang="ts">
import TrustPromisesPillars from '@/components/trame/blocks/trust/trust-promises-pillars.vue'
const props = {
heading: "Our commitments",
items: [
{
icon: "truck",
title: "Free shipping over $60",
text: "Ships within 2 business days from our workshop.",
href: "shipping"
},
{
icon: "rotate-ccw",
title: "Returns within 30 days",
text: "Refunded as soon as we receive the package.",
href: "returns"
}
]
}
</script>
<template>
<TrustPromisesPillars v-bind="props" />
</template>Props
Each prop says who changes it: Words, Picture, Action, Design, Data.* required.
| Prop | Type | Description |
|---|---|---|
| heading | string | Wordsa few words over the commitments ("Our commitments") |
| items* | Item[] | the items shown, in order |
| options | Options | the block’s settings: layout choices and secondary words, read by every variant |
Item items[] · 4 props
| Prop | Type | Description |
|---|---|---|
| icon | 'truck' | 'rotate-ccw' | 'shield-check' | 'lock' | 'headset' | 'gift' | 'leaf' | 'package' | 'credit-card' | 'heart' | 'clock' | 'badge-check' | 'map-pin' | 'recycle' | 'wrench' | 'check' | Designa check mark when absent |
| title* | string | Wordsthe commitment, short ("Returns within 30 days"): true for this shop, as its settings say |
| text | string | Wordsone line of detail ("Refunded as soon as the parcel arrives") |
| href | string | Actionthe page that states the conditions (a policy page) |
Options options · 2 props
| Prop | Type | Description |
|---|---|---|
| linkLabel | string | Wordsthe words of the conditions link ("See the terms") |
| 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:
items[].href
A trust and logos section, for home, product, cart, checkout pages; it uses @lucide/vue, clsx, motion, tailwind-merge.
More trust and logos blocks
- Logo strip row: three to eight logos in one calm row, their title beside them or over them between two hairlines; the merchant’s own only.
- Logos band: a band in the inverse or brand mood: a one-line claim over a row of logos; the merchant’s own only.
- Logos dense wall: bordered cells in a quiet wall, for many names (nine and more); the merchant’s own only.
- Logos grid heading: a heading and a sentence at the left, the logos as tiles at the right: customers worth a title; the merchant’s own only.
- Logos lead partner: the first name told large beside the heading, the others as a quieter row below: one anchor customer or stockist the merchant puts first; the merchant’s own only.
- Logos ledger: a ruled list, one line per name with its result or a link: stockists or customers the visitor may look up one by one; the merchant’s own only.
- Logos with results: each customer as a card with its real result in one line and a link to the story; the merchant’s own only.
- Partner tiers tiered: sponsors or partners grouped under their level, the logos shrinking from the first tier to the last: an event or an association with sponsors the merchant names; the merchant’s own only.