Awards criteria — Press block
Freepress-awards-criteria · for home, about, landing pages
Awards criteria
Certifications shown with their public criteria and whether the merchant holds them: labels that need proof
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/press-awards-criteriaUsage
Its demo data, shortened (Using blocks).
<script setup lang="ts">
import PressAwardsCriteria from '@/components/trame/blocks/press/press-awards-criteria.vue'
const props = {
heading: "Awards and labels",
lead: "The prizes we have received, and who gave them to us.",
items: [
{
title: "Responsible Craftsmanship Award",
issuer: "Northwest Crafts Guild",
year: "2025",
citation: "A house that repairs what it sells and says so plainly.",
category: "Leather goods category",
place: "Seattle",
url: "https://example.org/cma-nord/prix-2025"
},
{
title: "Made in the USA label",
issuer: "American Origin Association",
year: "2024",
url: "https://example.org/origine-france"
}
]
}
</script>
<template>
<PressAwardsCriteria v-bind="props" />
</template>Props
Each prop says who changes it: Words, Picture, Action, Design, Data.* required.
| Prop | Type | Description |
|---|---|---|
| heading | string | Wordswhat these distinctions are ("Awards and labels") |
| lead | string | Wordsone sentence of context |
| items | Item[] | the items shown, in order |
| options | Options | the block’s settings: layout choices and secondary words, read by every variant |
Item items[] · 11 props
| Prop | Type | Description |
|---|---|---|
| title* | string | Wordsthe name of the prize, label or certification, as its issuer writes it |
| issuer* | string | Wordswho gave it |
| year* | string | Wordsthe year it was received, as the merchant writes it ("2024") |
| image | string | Picturethe badge or label file as the issuer supplied it: never a drawn medal |
| alt | string | Wordswhat the badge shows, when its words are not around it |
| citation | string | Wordswhat the issuer said about the merchant, or the reason of the award |
| category | string | Wordsthe category or the edition ("Craft, furniture category") |
| place | string | Wordswhere it was given |
| url | string | Designthe issuer’s page about this award (https://…) |
| held | boolean | criteria: whether the merchant holds it today (true) or is working towards it (false); absent: not stated |
| criteria | Criteria[] | the label’s public criteria, each met or not |
Criteria items[].criteria[] · 2 props
| Prop | Type | Description |
|---|---|---|
| label* | string | Wordsone public criterion of the label |
| met | boolean | whether the merchant meets it: absent means not stated |
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 |
| asset | a picture’s address as your app serves it |
| 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
A press section, for home, about, landing pages; it uses @lucide/vue, @vueuse/core, class-variance-authority, clsx, motion, reka-ui, tailwind-merge.
More press blocks
- Assets tiles: the files as cards with thumbnails, grouped by kind, under a short text: a brand whose logos and photos are the point; the merchant’s own only.
- Kit columns: a fact sheet: key facts in a column, the presentation beside them, the files and the contact below on a tint: a young brand with few files; the merchant’s own only.
- Kit dossier: the brand’s text on one side and its files as a list of rows with format and size on the other: the usual press page; the merchant’s own only.
- Media proof photo grid: square customer photos with a short caption and the author under each: a wall of real use; the merchant’s own only.
- Media proof post wall: cards with the handle, the source, the date and the words of social posts: when the words matter as much as the picture; the merchant’s own only.
- Media proof video row: poster cards linking out to customers’ videos, with their length and creator: nothing plays on the page; the merchant’s own only.
- Mentions featured quote: one real sentence told large with its outlet, the other mentions as small lines under it: one strong mention, or a single one.
- Mentions grouped: the mentions gathered under their outlet, each outlet at the left with its dated pieces at the right: several pieces from the same outlets.