Slim line — Footer block
Profooter-slim-line · for home, catalog, product, cart, checkout, account, article, landing pages
Slim line
A single quiet line: the name, a few links and the legal line
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-slim-lineUsage
Its demo data, shortened (Using blocks).
<script setup lang="ts">
import FooterSlimLine from '@/components/trame/blocks/footer/footer-slim-line.vue'
const props = {
name: "Maison Aubrac",
columns: [
{
title: "Help",
links: [
{
label: "Shipping",
action: "page",
record: {
id: "shipping"
}
},
{
label: "Returns",
action: "page",
record: {
id: "returns"
}
}
]
},
{
title: "About us",
links: [
{
label: "Our story",
action: "page",
record: {
id: "our-story"
}
},
{
label: "Journal",
action: "page",
record: {
id: "journal"
}
}
]
}
],
legal: "© {year} Maison Aubrac. All rights reserved.",
options: {
year: 2026
}
}
</script>
<template>
<FooterSlimLine 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 |
| columns* | Column[] | groups of links; one to eight |
| legal | string | Wordsthe legal line; {year} is replaced by options.year (dropped when there is none) |
| 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 |
Options options · 2 props
| Prop | Type | Description |
|---|---|---|
| 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 |
| 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 |
| 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[]
A footer section, for home, catalog, product, cart, checkout, account, article, landing pages.
More footer blocks
- 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.
- Sitemap: a large catalogue: the brand and its blurb narrow at the left, up to six columns, the legal row under a rule.
- Statement: a shop with a point of view: its blurb set large, the columns small under it.
- 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.
- Wordmark: an expressive brand: the link groups as quiet titled rows, then the shop’s name set across the whole width.