Footer, local
betaA 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
- Pairs with
- Location, mapContact, links
Installation
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):
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
| Field | Type | Limits | Guidance |
|---|---|---|---|
name | string | 1–40 chars | The business's name, as on its sign. |
taglineoptional | string | ≤ 100 chars | One line: what and where. |
address | object | ||
address.lines | string[] | 1–4 items | |
address.landmarkoptional | string | ≤ 80 chars | How locals find it: 'opposite the central market'. |
address.coordinatesoptional | object | ||
address.coordinates.lat | number | -90–90 | |
address.coordinates.lng | number | -180–180 | |
address.mapUrloptional | string | uri | A link to directions. |
hoursoptional | object | Days with the same slots are grouped: 'Tue – Fri'. | |
hours.days | object[] | 1–7 items | |
hours.days[].day | "monday" | "tuesday" | "wednesday" | "thursday" | "friday" | "saturday" | "sunday" | ||
hours.days[].slots | object[] | ≤ 3 items | Empty for a closed day. |
hours.days[].slots[].open | string | 24-hour 'HH:MM'. | |
hours.days[].slots[].close | string | 24-hour 'HH:MM'. | |
hours.noteoptional | string | ≤ 120 chars | Holidays, exceptions. |
contactsoptional | object[] | ≤ 6 items | |
contacts[].kind | "phone" | "whatsapp" | "email" | "instagram" | "facebook" | "tiktok" | "x" | "website" | ||
contacts[].value | string | 1–120 chars | The number, address or URL. |
contacts[].labeloptional | string | ≤ 32 chars | |
linksoptional | object[] | ≤ 6 items | The site's pages or sections: 'Menu', 'Book a table'. |
links[].label | string | 1–32 chars | A verb first, two to four words: 'Start free', 'Book a table'. |
links[].href | string | A path ('/pricing'), an anchor ('#menu'), or a full URL. | |
copyright | string | 1–80 chars | '© 2026 Mama Ngono's'. |
localeoptional | string | A BCP 47 locale for day names and times ('en-CM'); the page's language when left out. | |
labels | object | The columns' headings and the words around the hours. | |
labels.visit | string | 1–24 chars | Over the address: 'Visit us'. |
labels.hours | string | 1–24 chars | Over the hours: 'Opening hours'. |
labels.contact | string | 1–24 chars | Over the contacts: 'Contact'. |
labels.closed | string | 1–16 chars | 'Closed' |
labels.directionsoptional | string | ≤ 24 chars | The map link under the address: 'Directions'. |
Props
| Prop | Notes |
|---|---|
content | FooterLocalContent; the example when left out |
id | the footer's id, for anchor links; "footer" by default |
headingLevel | 1, 2 or 3: the column titles' tag; 2 by default |
className | on the <footer>, for spacing |
Accessibility
- The block is the page's
footerlandmark; column titles are headings atheadingLevel. - Links that leave the site open in a new tab.