Kit columns — Press block

Pro

press-kit-columns · for about, press, landing pages

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

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-kit-columns

Usage

Its demo data, shortened (Using blocks).

<script setup lang="ts">
import PressKitColumns from '@/components/trame/blocks/press/press-kit-columns.vue'

const props = {
title: "Press room",
intro: "Texts and files you are free to use when writing about the brand, as long as you credit it by name.",
boilerplate: [
"Maison Atelier makes bags and jackets built to last, in a Portland workshop. Every piece is sewn, checked and shipped by the same team.",
"Materials are chosen for how well they hold up over time, and every piece can be repaired at the workshop."
],
facts: [
{
label: "Founded",
value: "2019"
},
{
label: "Workshop",
value: "Portland"
}
],
assets: [
{
name: "Logo, light version",
kind: "logo",
format: "SVG",
size: "14 KB",
file: "/press/logo-clair.svg"
},
{
name: "Logo, dark version",
kind: "logo",
format: "SVG",
size: "14 KB",
file: "/press/logo-sombre.svg"
}
],
terms: "Logos must not be altered. Photos are royalty-free for an article about the brand, credited “Maison Atelier.”",
contact: {
name: "Claire Dumont",
role: "Press relations",
email: "[email protected]",
phone: "(503) 555-0120",
hours: "Replies within 24 hours on business days"
},
action: {
label: "Download the full press kit",
action: "page",
record: {
id: "presse"
}
}
}
</script>

<template>
<PressKitColumns v-bind="props" />
</template>

Props

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

PropTypeDescription
title*stringWordsthe section’s heading ("Press room")
introstringWordsone sentence on who it is for and how to use the files
boilerplate*string[]Wordsthe brand’s presentation in a few paragraphs, as the merchant wrote it for the press: never written by the agent
factsFact[]key facts, only those the merchant states
assetsAsset[]the press files to download
termsstringWordsthe conditions of use of the files, as the merchant wrote them
contactContactwho journalists write to
actionActionthe call to action: its words and the page action it runs
optionsOptionsthe block’s settings: layout choices and secondary words, read by every variant
Fact facts[] · 2 props
PropTypeDescription
label*stringWords("Founded in")
value*stringWordsas the merchant states it ("2019", "Roubaix")
Asset assets[] · 7 props
PropTypeDescription
name*stringWordswhat the file is ("Logo, light version", "Workshop photos", "Fact sheet")
kind'logo' | 'photo' | 'document' | 'other'logo, photo, document or other: groups the files
format*stringWordsthe file format as written ("SVG", "ZIP of 12 JPGs", "PDF")
sizestringWordsthe file size, as the merchant measured it ("1.2 MB")
file*stringPicturethe file’s address, a root-relative path or an absolute URL
previewstringPicturea thumbnail of the file, if it has one
altstringWordswhat the thumbnail shows
Contact contact · 5 props
PropTypeDescription
name*stringWordsthe person or desk to write to
rolestringWordstheir role, e.g. "Press officer"
email*stringWordsthe address as written
phonestringWordsa phone number
hoursstringWordswhen they answer, as the merchant wrote it
Action action · 3 props
PropTypeDescription
label*stringWordswhat happens ("Download the whole folder")
action*stringActiona named action of the page
recordRecord<string, unknown>Datathe record the action opens, if any
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
asseta picture’s address as your app serves it
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: action

A press section, for about, press, landing pages; it uses @lucide/vue, class-variance-authority, clsx, motion, reka-ui, tailwind-merge.

Built with

The components this block is made of; each one installs on its own too.

More press blocks

  • Awards criteria: certifications shown with their public criteria and whether the merchant holds them: labels that need proof.
  • Awards focus list: the titles in large type, one active at a time with its year and issuer beside it: a studio or maker whose four to eight distinctions carry the page (the merchant’s own only).
  • Awards ledger: a ruled table of index, title, issuer and year, the citation opening under its row: five to twelve distinctions listed like a résumé, with or without badges (the merchant’s own only).
  • Awards spotlight: one award told large, its badge at the left, its citation and facts at the right: a single strong distinction.
  • Awards timeline: the years in a column and the awards as lines per year: a history of recognition, up to a dozen.
  • 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.

All 17 press blocks