Footer block
A site footer with brand, link columns and small print.
SourceStyles source@monoline/react 0.4.0Markdown for AI toolsbeta
- Built on native elements
- A footer element: the page contentinfo landmark. Use one per page.
- Each link column is a nav named by its title, with a heading at the chosen level.
- Styles in one file:
container.css
Import
import '@monoline/css';
import {BlockFooter} from '@monoline/react';
Not installed yet? Pick a route.
Copies the source and its styles into your project.
npx monoline add block-footer
Usage
import {BlockFooter} from '@monoline/react';
<BlockFooter
brand="Your brand"
description="Short line about what you make."
columns={[
{title: 'Product', links: [{label: 'Components', href: '#'}, {label: 'Blocks', href: '#'}, {label: 'Changelog', href: '#'}]},
{title: 'Resources', links: [{label: 'Docs', href: '#'}, {label: 'Source', href: '#'}]},
{title: 'Company', links: [{label: 'About', href: '#'}, {label: 'Contact', href: '#'}]},
]}
legal="© 2026 Your brand. All rights reserved."
/>
Examples
Three columns
Props
BlockFooterProps
| Prop | Type | Default | Description |
|---|---|---|---|
brand | ReactNode | – | Your logo or name. |
description | ReactNode | – | Optional short sentence about the product, shown under the brand. |
columns required | FooterColumn[] | – | Groups of links; each column has a `title` and a list of `links` and becomes its own labelled `nav`. |
renderLink | RenderLink | – | Renders each link, so a client router can handle the click. Default a plain `<a href>`. |
legal | ReactNode | – | Small print: copyright, legal links. |
headingLevel | 2 | 3 | 4 | 5 | 6 | 2 | Outline level of the column titles. |
Data Attributes
State is exposed through attributes. Style it with these selectors, not with class toggles.
This component sets no state attributes.
CSS classes
| Class | Stylesheet |
|---|---|
.container | container.css |
.container-full | container.css |
.container-page | container.css |
.container-text | container.css |
.link | link.css |
.block-footer | block-footer.css |
.block-footer-brand | block-footer.css |
.block-footer-col | block-footer.css |
.block-footer-columns | block-footer.css |
.block-footer-heading | block-footer.css |
.block-footer-legal | block-footer.css |
.block-footer-name | block-footer.css |
.block-footer-top | block-footer.css |
Customization
Style it with the kit's tokens in your own CSS, loaded after @monoline/css. Prefer the attributes above over extra classes. See Theming for every token.
app.css
.container {
border-color: var(--accent);
}
Accessibility
- A footer element: the page contentinfo landmark. Use one per page.
- Each link column is a nav named by its title, with a heading at the chosen level.