Zubra UI
Code for
GitHub

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 }] }].

Bread classes and recipes since 2019.

This one has no events: it shows what it's given.

Source: site-footer.zb, and its registry item.

Install

Compiled (any project)
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
One file, no dependencies (4.5 KB gzipped)
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
.zb source (to edit it with Zubra)
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
No build: a script tag, straight from this site
HTML
<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

index.html
<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>
Example.jsx
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>
  );
}
Example.vue
<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('-') } } }) -->
Example.svelte
<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>
example.component.ts
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

Properties (each is also an HTML attribute of the same name, unless marked)
PropertyTypeDefault
brandstring""
columns
property only
{ heading, links }[][]
Slots
SlotFor
(default)The line under the brand.
brandThe logo or name (defaults to brand).

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.

Theme

Every component reads shadcn/ui's CSS variables, so any shadcn theme works. Pick a look or a colour, or paste a theme's CSS.

Look: colours, fonts, corners and motion

Accent colour