Badges list compact — Trust and logos block

Pro

trust-badges-list-compact · for home, product, cart, checkout pages

Badges list compact

A vertical icon list, left aligned, for a product page column or a cart drawer; 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-badges-list-compact

Usage

Its demo data, shortened (Using blocks).

<script setup lang="ts">
import TrustBadgesListCompact from '@/components/trame/blocks/trust/trust-badges-list-compact.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>
<TrustBadgesListCompact v-bind="props" />
</template>

Props

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

PropTypeDescription
headingstringWordsa few words over the commitments ("Our commitments")
items*Item[]the items shown, in order
optionsOptionsthe block’s settings: layout choices and secondary words, read by every variant
Item items[] · 4 props
PropTypeDescription
icon'truck' | 'rotate-ccw' | 'shield-check' | 'lock' | 'headset' | 'gift' | 'leaf' | 'package' | 'credit-card' | 'heart' | 'clock' | 'badge-check' | 'map-pin' | 'recycle' | 'wrench' | 'check' | 'returns' | 'shield' | 'card' | 'pin' | 'award' | 'droplet' | 'flame' | 'hand' | 'message' | 'phone' | 'ruler' | 'sparkles' | 'star' | 'store' | 'sun' | 'people' | 'bolt'Designa check mark when absent
title*stringWordsthe commitment, short ("Returns within 30 days"): true for this shop, as its settings say
textstringWordsone line of detail ("Refunded as soon as the parcel arrives")
hrefstringActionthe page that states the conditions (a policy page)
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
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: 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

  • Backers index: a typographic register, one big name per row with its role and note beside it: few backers, no logos, a sober tone.
  • Backers portraits: round portraits in a row with the name and role under them: backers who are people (founders, business angels).
  • Backers roll: cards with the logo or monogram, the name, the role and a line: three to nine backers of mixed kinds.
  • Enterprise trust capability grid: icon cards that say how identity, audit, residency or roles work rather than "yes": a technical reviewer.
  • Enterprise trust certification grid: certifications and attestations as cards, each with a status that is always written out: a buyer who asks for proof.
  • Enterprise trust deployment cards: two or three ways to run the product, each with its points and its honest trade-off: a choice of hosting.
  • Enterprise trust document checklist: a ruled list of documents ready to download beside the title: a procurement file.
  • Logo strip inline: one slim line with a small label, under a hero: the quietest proof; the merchant’s own only.

All 23 trust and logos blocks