Inset card — Footer block
Freefooter-inset-card · for home, catalog, product, cart, checkout, account, article, landing pages
Inset card
A softer close on a polished site: the whole footer as one rounded card set in from the band’s edges
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-inset-cardUsage
Its demo data, shortened (Using blocks).
<script setup lang="ts">
import FooterInsetCard from '@/components/trame/blocks/footer/footer-inset-card.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>
<FooterInsetCard v-bind="props" />
</template>Props
Each prop says who changes it: Words, Picture, Action, Design, Data.* required.
| Prop | Type | Description |
|---|---|---|
| name* | string | Wordsthe shop’s name, shown when there is no logo |
| logo | string | Picturethe brand’s wordmark or mark (SVG or transparent PNG); the name stays the accessible label |
| blurb | string | Wordsthe business in a sentence or two |
| columns | Column[] | groups of links, up to eight; none for a minimal footer (centered, statement) |
| contact | Contact | how to reach the shop |
| social | Social[] | 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 |
| marks | Mark[] | certifications the merchant really holds |
| newsletter | Newsletter | the newsletter sign-up in the footer |
| apps | Apps | links to the shop’s apps, and a QR code |
| legal | string | Wordsthe legal line; {year} is replaced by options.year (dropped when there is none) |
| legalLinks | LegalLink[] | the legal links at the very bottom |
| options | Options | the block’s settings: layout choices and secondary words, read by every variant |
Column columns[] · 2 props
| Prop | Type | Description |
|---|---|---|
| title* | string | Wordsthe group’s title |
| links* | Link[] | the column’s links, in order |
Link columns[].links[] · 4 props
| Prop | Type | Description |
|---|---|---|
| label* | string | Wordsthe link’s words, e.g. "See the collection" |
| action | string | Actiona named action of the page |
| record | Record<string, unknown> | Datathe record the action applies to, passed to the host with it, if any |
| url | string | Designan address outside the app |
Contact contact · 4 props
| Prop | Type | Description |
|---|---|---|
| string | Wordsan email address | |
| phone | string | Wordsa phone number |
| address | string | Wordsthe postal address |
| hours | string | Wordsopening hours, as the merchant writes them |
Social social[] · 4 props
| Prop | Type | Description |
|---|---|---|
| network* | string | Designthe 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 |
| action | string | Actiona named action of the page |
| url | string | Designan address outside the app |
Mark marks[] · 1 props
| Prop | Type | Description |
|---|---|---|
| label* | string | Wordsa certification the merchant really holds |
Newsletter newsletter · 4 props
| Prop | Type | Description |
|---|---|---|
| title* | string | Wordsthe newsletter’s title |
| text | string | Wordsthe newsletter’s text |
| action* | string | Actionwhere the email goes |
| button | string | Wordsthe button’s words ("Subscribe") |
Apps apps · 3 props
| Prop | Type | Description |
|---|---|---|
| ios | Ios | the ios link: its words and where it leads |
| android | Android | the android link: its words and where it leads |
| qr | string | Picturea picture: a root-relative path (/media/…) or an absolute URL |
Ios apps.ios · 4 props
| Prop | Type | Description |
|---|---|---|
| label* | string | Wordsthe link’s words, e.g. "See the collection" |
| action | string | Actiona named action of the page |
| record | Record<string, unknown> | Datathe record the action applies to, passed to the host with it, if any |
| url | string | Designan address outside the app |
Android apps.android · 4 props
| Prop | Type | Description |
|---|---|---|
| label* | string | Wordsthe link’s words, e.g. "See the collection" |
| action | string | Actiona named action of the page |
| record | Record<string, unknown> | Datathe record the action applies to, passed to the host with it, if any |
| url | string | Designan address outside the app |
LegalLink legalLinks[] · 4 props
| Prop | Type | Description |
|---|---|---|
| label* | string | Wordsthe link’s words, e.g. "See the collection" |
| action | string | Actiona named action of the page |
| record | Record<string, unknown> | Datathe record the action applies to, passed to the host with it, if any |
| url | string | Designan address outside the app |
Options options · 4 props
| Prop | Type | Description |
|---|---|---|
| locale | string | Designthe language and currency in use ("France · EUR"), shown quietly |
| year | number | Datathe 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 |
| mono | boolean | draw 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' | 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 |
| 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:
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.