site-footer
The bottom of a site: the brand and a line about it, columns of links, and the small print (copyright, legal links). Columns wrap as space runs out. columns is [{ heading, links: [{ label, href }] }].
This one has no events: it shows what it's given.
Source: site-footer.zb, and its registry item.
Install
npx shadcn@latest add https://zubra-js.github.io/zubra-ui/r/site-footer.jsonpnpm dlx shadcn@latest add https://zubra-js.github.io/zubra-ui/r/site-footer.jsonyarn dlx shadcn@latest add https://zubra-js.github.io/zubra-ui/r/site-footer.jsonbunx --bun shadcn@latest add https://zubra-js.github.io/zubra-ui/r/site-footer.json
npx shadcn@latest add https://zubra-js.github.io/zubra-ui/r/element/site-footer.jsonpnpm dlx shadcn@latest add https://zubra-js.github.io/zubra-ui/r/element/site-footer.jsonyarn dlx shadcn@latest add https://zubra-js.github.io/zubra-ui/r/element/site-footer.jsonbunx --bun shadcn@latest add https://zubra-js.github.io/zubra-ui/r/element/site-footer.json
npx shadcn@latest add https://zubra-js.github.io/zubra-ui/r/src/site-footer.jsonpnpm dlx shadcn@latest add https://zubra-js.github.io/zubra-ui/r/src/site-footer.jsonyarn dlx shadcn@latest add https://zubra-js.github.io/zubra-ui/r/src/site-footer.jsonbunx --bun shadcn@latest add https://zubra-js.github.io/zubra-ui/r/src/site-footer.json
<link rel="stylesheet" href="https://zubra-js.github.io/zubra-ui/themes/default.css">
<script type="module" src="https://zubra-js.github.io/zubra-ui/cdn/site-footer.js"></script>The compiled install writes src/components/zubra/site-footer.js and the theme, and adds @zubra/runtime to your dependencies. The one-file install writes the same path as a plain custom element that needs nothing installed (or download it and load it with a <script type="module">); it's smaller on a page with one to three components, the shared runtime with more.
Usage
<site-footer brand="Bakehouse" legal="© 2026 Bakehouse. All rights reserved.">
Bread classes and recipes since 2019.
</site-footer>
<script type="module">
import './components/zubra/site-footer.js';
const element = document.querySelector('site-footer');
element.columns = [
{
heading: 'Learn',
links: [
{ label: 'Classes', href: '#classes' },
{ label: 'Recipes', href: '#recipes' },
],
},
{
heading: 'Company',
links: [
{ label: 'About', href: '#about' },
{ label: 'Careers', href: '#careers' },
],
},
{
heading: 'Help',
links: [
{ label: 'Contact', href: '#contact' },
{ label: 'Refunds', href: '#refunds' },
],
},
];
</script>import './components/zubra/site-footer.js';
const columns = [
{
heading: 'Learn',
links: [
{ label: 'Classes', href: '#classes' },
{ label: 'Recipes', href: '#recipes' },
],
},
{
heading: 'Company',
links: [
{ label: 'About', href: '#about' },
{ label: 'Careers', href: '#careers' },
],
},
{
heading: 'Help',
links: [
{ label: 'Contact', href: '#contact' },
{ label: 'Refunds', href: '#refunds' },
],
},
];
export function SiteFooterExample() {
return (
<site-footer
brand="Bakehouse"
legal="© 2026 Bakehouse. All rights reserved."
columns={columns}
>
Bread classes and recipes since 2019.
</site-footer>
);
}<script setup>
import './components/zubra/site-footer.js';
const columns = [
{
heading: 'Learn',
links: [
{ label: 'Classes', href: '#classes' },
{ label: 'Recipes', href: '#recipes' },
],
},
{
heading: 'Company',
links: [
{ label: 'About', href: '#about' },
{ label: 'Careers', href: '#careers' },
],
},
{
heading: 'Help',
links: [
{ label: 'Contact', href: '#contact' },
{ label: 'Refunds', href: '#refunds' },
],
},
];
</script>
<template>
<site-footer
brand="Bakehouse"
legal="© 2026 Bakehouse. All rights reserved."
:columns.prop="columns"
>
Bread classes and recipes since 2019.
</site-footer>
</template>
<!-- vite.config.js: vue({ template: { compilerOptions: { isCustomElement: (tag) => tag.includes('-') } } }) --><script>
import './components/zubra/site-footer.js';
const columns = [
{
heading: 'Learn',
links: [
{ label: 'Classes', href: '#classes' },
{ label: 'Recipes', href: '#recipes' },
],
},
{
heading: 'Company',
links: [
{ label: 'About', href: '#about' },
{ label: 'Careers', href: '#careers' },
],
},
{
heading: 'Help',
links: [
{ label: 'Contact', href: '#contact' },
{ label: 'Refunds', href: '#refunds' },
],
},
];
</script>
<site-footer
brand="Bakehouse"
legal="© 2026 Bakehouse. All rights reserved."
{columns}
>
Bread classes and recipes since 2019.
</site-footer>import { Component, CUSTOM_ELEMENTS_SCHEMA } from '@angular/core';
import './components/zubra/site-footer.js';
@Component({
selector: 'app-site-footer-example',
schemas: [CUSTOM_ELEMENTS_SCHEMA],
template: `
<site-footer
brand="Bakehouse"
legal="© 2026 Bakehouse. All rights reserved."
[columns]="columns"
>
Bread classes and recipes since 2019.
</site-footer>
`,
})
export class SiteFooterExample {
columns = [
{
heading: 'Learn',
links: [
{ label: 'Classes', href: '#classes' },
{ label: 'Recipes', href: '#recipes' },
],
},
{
heading: 'Company',
links: [
{ label: 'About', href: '#about' },
{ label: 'Careers', href: '#careers' },
],
},
{
heading: 'Help',
links: [
{ label: 'Contact', href: '#contact' },
{ label: 'Refunds', href: '#refunds' },
],
},
];
}API
| Property | Type | Default |
|---|---|---|
brand | string | "" |
columnsproperty only | { heading, links }[] | [] |
legal | string | "" |
| Slot | For |
|---|---|
(default) | The line under the brand. |
brand | The logo or name (defaults to brand). |
legal | The small print at the bottom (defaults to legal). |
Size
1.1 KB gzipped for the component, plus the runtime, which every Zubra component on a page shares (up to 22.1 KB, all of it). On its own, with the parts of the runtime it uses, it's 17.3 KB.