Columns — Footer block

Free

footer-columns · for home, catalog, product, cart, checkout, account, article, landing pages

Columns

The usual footer: the business in a sentence and its contact, then the columns of links

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/footer-columns

Usage

Its demo data, shortened (Using blocks).

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

const props = {
name: "Maison Aubrac",
blurb: "Clothing and footwear for the mountains, designed and repaired in our Bozeman workshop since 2011.",
columns: [
{
title: "Shop",
links: [
{
label: "New arrivals",
action: "page",
record: {
id: "new-arrivals"
}
},
{
label: "Shoes",
action: "page",
record: {
id: "shoes"
}
}
]
},
{
title: "Help",
links: [
{
label: "Shipping",
action: "page",
record: {
id: "shipping"
}
},
{
label: "Returns and exchanges",
action: "page",
record: {
id: "returns-and-exchanges"
}
}
]
}
],
contact: {
email: "[email protected]",
phone: "(406) 555-0142",
address: "1420 Pine Street, Bozeman, MT 59715",
hours: "Tuesday to Saturday, 10 a.m. – 6 p.m."
},
social: [
{
network: "Instagram",
url: "https://instagram.com/"
},
{
network: "Pinterest",
url: "https://pinterest.com/"
}
],
payments: [
"Visa",
"Mastercard"
],
legal: "© {year} Maison Aubrac. All rights reserved.",
legalLinks: [
{
label: "Legal notice",
action: "page",
record: {
id: "mentions-legales"
}
},
{
label: "Terms of sale",
action: "page",
record: {
id: "cgv"
}
}
],
options: {
locale: "United States · USD",
year: 2026
}
}
</script>

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

Props

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

PropTypeDescription
name*stringWordsthe shop’s name, shown when there is no logo
logostringPicturethe brand’s wordmark or mark (SVG or transparent PNG); the name stays the accessible label
blurbstringWordsthe business in a sentence or two
columnsColumn[]groups of links, up to eight; none for a minimal footer (centered, statement)
contactContacthow to reach the shop
socialSocial[]the merchant’s own profiles; a `kind` adds a generic glyph beside the name
payments(string | Payment)[]the methods the shop really accepts: a name, or { name, kind } to set it as a small mark
marksMark[]certifications the merchant really holds
newsletterNewsletterthe newsletter sign-up in the footer
appsAppslinks to the shop’s apps, and a QR code
legalstringWordsthe legal line; {year} is replaced by options.year (dropped when there is none)
legalLinksLegalLink[]the legal links at the very bottom
optionsOptionsthe block’s settings: layout choices and secondary words, read by every variant
Column columns[] · 2 props
PropTypeDescription
title*stringWordsthe group’s title
links*Link[]the column’s links, in order
Link columns[].links[] · 4 props
PropTypeDescription
label*stringWordsthe link’s words, e.g. "See the collection"
actionstringActiona named action of the page
recordRecord<string, unknown>Datathe record the action applies to, passed to the host with it, if any
urlstringDesignan address outside the app
Contact contact · 4 props
PropTypeDescription
emailstringWordsan email address
phonestringWordsa phone number
addressstringWordsthe postal address
hoursstringWordsopening hours, as the merchant writes them
Social social[] · 4 props
PropTypeDescription
network*stringDesignthe network’s name as written ("Instagram")
kind'instagram' | 'facebook' | 'tiktok' | 'youtube' | 'pinterest' | 'x' | 'threads' | 'bluesky' | 'linkedin' | 'newsletter' | 'blog' | 'podcast'which network it is: picks a generic glyph shown beside the name (never the network’s logo); without it, the name alone
actionstringActiona named action of the page
urlstringDesignan address outside the app
Mark marks[] · 1 props
PropTypeDescription
label*stringWordsa certification the merchant really holds
Newsletter newsletter · 4 props
PropTypeDescription
title*stringWordsthe newsletter’s title
textstringWordsthe newsletter’s text
action*stringActionwhere the email goes
buttonstringWordsthe button’s words ("Subscribe")
Apps apps · 3 props
PropTypeDescription
iosIosthe ios link: its words and where it leads
androidAndroidthe android link: its words and where it leads
qrstringPicturea picture: a root-relative path (/media/…) or an absolute URL
Ios apps.ios · 4 props
PropTypeDescription
label*stringWordsthe link’s words, e.g. "See the collection"
actionstringActiona named action of the page
recordRecord<string, unknown>Datathe record the action applies to, passed to the host with it, if any
urlstringDesignan address outside the app
Android apps.android · 4 props
PropTypeDescription
label*stringWordsthe link’s words, e.g. "See the collection"
actionstringActiona named action of the page
recordRecord<string, unknown>Datathe record the action applies to, passed to the host with it, if any
urlstringDesignan address outside the app
LegalLink legalLinks[] · 4 props
PropTypeDescription
label*stringWordsthe link’s words, e.g. "See the collection"
actionstringActiona named action of the page
recordRecord<string, unknown>Datathe record the action applies to, passed to the host with it, if any
urlstringDesignan address outside the app
Options options · 4 props
PropTypeDescription
localestringDesignthe language and currency in use ("France · EUR"), shown quietly
yearnumberDatathe year in the legal line ("{year}", else after "©"), given by the host: the block never reads the clock, so its server render stays the same everywhere; absent, the line has no year
monobooleandraw the logo with the text colour through a mask, so it follows the theme and the mode (light or dark); needs the file on the same origin
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: columns[].links[], social[], newsletter, apps.ios, apps.android, legalLinks[]

A footer section, for home, catalog, product, cart, checkout, account, article, landing pages; it uses @lucide/vue, @vueuse/core, class-variance-authority, clsx, reka-ui, tailwind-merge.

More footer blocks

  • Company legal card: a shop that must state who it is (company number, VAT, mediator): the link columns, and a bordered card of the merchant’s legal details at the right.
  • Market panel: a shop that sells in several countries or languages: the name and its blurb beside a "Country and language" panel of the real markets, the columns of links under them.
  • Rows stacked rows: help-heavy or content sites: the brand and social marks, then one row per group, its title left and its links inline.
  • Signup band: brand-led shops: a headline and an email field on one side, three columns of links on the other.
  • Slim grouped: a slim band that keeps the link groups: the name over the legal line at the start, each group a small titled column at the end; for two to four short groups that a single line would jumble.
  • Slim line: a single quiet line: the name, a few links and the legal line.
  • Stores: shops with points of sale: link columns on the left, two to four stores with address and hours on the right.
  • Wordmark masthead: an expressive brand with a real sitemap: the shop’s name across the top like a newspaper masthead on a heavy rule, the link groups under it as titled columns.

All 15 footer blocks