Skip to content
docs-sitekit

Menu

Type to search the docs.

↑ ↓ move · Enter open · Esc close

SiteFooter

Brand, link columns and a legal bar.

Preview

Add to your site

npx docs-sitekit add site-footer

It writes these files, and keeps a file you changed:

  • src/presentation/components/site/site-footer.tsx

It requires nothing else from the registry.

Props

Built from the TypeScript types and the TSDoc comments of the component, so they cannot drift from the code.

Props of SiteFooter
KeyTypeDefaultAllowed valuesDescription
namestringrequired-The name of the site, in the brand and in the legal line.
descriptionstring--One sentence under the brand.
commandstring--A command shown under the description.
columnsreadonly FooterColumn[]required-The link columns, one grid track each.
licensestring--The license, after the name in the legal line.
version{ label: string; href?: string; }--Shown after the license, linked when href is given.
credit{ prefix: string; label: string; href: string; }--A credit at the right of the legal line.
Fields of FooterColumn
KeyTypeDefaultAllowed valuesDescription
titlestringrequired-The heading of the column, and the name of its navigation.
linksreadonly { label: string; href: string; external?: boolean; icon?: string; }[]required-The links. icon is a lucide name or brand:<slug>, drawn before the label, and external opens the link in a new tab.

Variants and states

Without columns

The brand and the legal line, for a site with one page.

About

The footer of every page: the brand with a sentence and a command, one column of links for each group, and a legal line with the license, the version and a credit. The columns have explicit tracks, so they sit side by side from the md width and stack under it.

Accessibility

  • It is the <footer> of the page, which is a landmark.
  • Each column is a <nav> named by its title, which is also its h2.
  • A link is 44 px high on a phone and 32 px from the md width.
  • An external link opens in a new tab with rel="noopener noreferrer" and shows an arrow that is aria-hidden. The arrow is the only sign of the new tab, so the link does not say it.
  • A brand logo before a link is decorative.

Source

Edit this page

Last updated