Skip to content
New

Footer, local

beta

A footer for a place people visit: the address with a landmark, the week's hours grouped by day, phone and social links, the copyright.

npx rasengan-ui add footer-local
Use it
Any local business site: the address and hours are what visitors look for at the bottom of the page.
Avoid it
A product or a startup: footer-columns.
Built with
Tailwind classes and Lucide icons

Installation

Terminal
npx rasengan-ui add footer-local

It installs into components/blocks/footer-local/, with lib/blocks.ts.

Usage

Without content, the block shows its example. Pass your own, typed by the block's schema, from a content file (here, the example with one field changed):

app/_routes/index.page.tsx
import { FooterLocal } from "@/components/blocks/footer-local";
import { home } from "@/content/home";
 
export default function Home() {
  return <FooterLocal content={home.footer} />;
}
content/home.ts
import { example, type FooterLocalContent } from "@/components/blocks/footer-local";
 
export const home = {
  footer: { ...example, copyright: "© 2026 Your business" } satisfies FooterLocalContent,
};

Days with the same opening slots share a row ("Tue – Fri"); a day missing from hours is left out. Contacts take the same shape as the contact links block.

Content

FieldTypeLimitsGuidance
namestring1–40 charsThe business's name, as on its sign.
taglineoptionalstring≤ 100 charsOne line: what and where.
addressobject
address.linesstring[]1–4 items
address.landmarkoptionalstring≤ 80 charsHow locals find it: 'opposite the central market'.
address.coordinatesoptionalobject
address.coordinates.latnumber-90–90
address.coordinates.lngnumber-180–180
address.mapUrloptionalstringuriA link to directions.
hoursoptionalobjectDays with the same slots are grouped: 'Tue – Fri'.
hours.daysobject[]1–7 items
hours.days[].day"monday" | "tuesday" | "wednesday" | "thursday" | "friday" | "saturday" | "sunday"
hours.days[].slotsobject[]≤ 3 itemsEmpty for a closed day.
hours.days[].slots[].openstring24-hour 'HH:MM'.
hours.days[].slots[].closestring24-hour 'HH:MM'.
hours.noteoptionalstring≤ 120 charsHolidays, exceptions.
contactsoptionalobject[]≤ 6 items
contacts[].kind"phone" | "whatsapp" | "email" | "instagram" | "facebook" | "tiktok" | "x" | "website"
contacts[].valuestring1–120 charsThe number, address or URL.
contacts[].labeloptionalstring≤ 32 chars
linksoptionalobject[]≤ 6 itemsThe site's pages or sections: 'Menu', 'Book a table'.
links[].labelstring1–32 charsA verb first, two to four words: 'Start free', 'Book a table'.
links[].hrefstringA path ('/pricing'), an anchor ('#menu'), or a full URL.
copyrightstring1–80 chars'© 2026 Mama Ngono's'.
localeoptionalstringA BCP 47 locale for day names and times ('en-CM'); the page's language when left out.
labelsobjectThe columns' headings and the words around the hours.
labels.visitstring1–24 charsOver the address: 'Visit us'.
labels.hoursstring1–24 charsOver the hours: 'Opening hours'.
labels.contactstring1–24 charsOver the contacts: 'Contact'.
labels.closedstring1–16 chars'Closed'
labels.directionsoptionalstring≤ 24 charsThe map link under the address: 'Directions'.

Props

PropNotes
contentFooterLocalContent; the example when left out
idthe footer's id, for anchor links; "footer" by default
headingLevel1, 2 or 3: the column titles' tag; 2 by default
classNameon the <footer>, for spacing

Accessibility

  • The block is the page's footer landmark; column titles are headings at headingLevel.
  • Links that leave the site open in a new tab.