Footer
A site's foot, in a footer landmark: its brand and a line about it, columns of links, social links and the fine print.
import { Footer, type FooterColumn } from "@produkto/ui/Footer"; import { GithubIcon, Hexagon01Icon, Linkedin01Icon, NewTwitterIcon, YoutubeIcon, } from "@hugeicons/core-free-icons"; import { Icon } from "@produkto/ui/Icon"; import type { BlockLink, BlockSocialLink } from "@produkto/ui/Section"; const columns: FooterColumn[] = [ { title: "Column 1", links: [ { label: "Link 1", link: "#" }, { label: "Link 2", link: "#" }, { label: "Link 3", link: "#" }, ], }, { title: "Column 2", links: [ { label: "Link 1", link: "#" }, { label: "Link 2", link: "#" }, { label: "Link 3", link: "#" }, ], }, { title: "Column 3", links: [ { label: "Link 1", link: "#" }, { label: "Link 2", link: "#" }, ], }, { title: "Column 4", links: [ { label: "Link 1", link: "#" }, { label: "Link 2", link: "#" }, ], }, ]; const social: BlockSocialLink[] = [ { icon: <Icon icon={NewTwitterIcon} />, label: "X", link: "#" }, { icon: <Icon icon={GithubIcon} />, label: "GitHub", link: "#" }, { icon: <Icon icon={Linkedin01Icon} />, label: "LinkedIn", link: "#" }, { icon: <Icon icon={YoutubeIcon} />, label: "YouTube", link: "#" }, ]; const legal: BlockLink[] = [ { label: "Link 1", link: "#" }, { label: "Link 2", link: "#" }, ]; const Example = () => ( <Footer brand={ <span className="flex items-center gap-2"> <Icon icon={Hexagon01Icon} size={22} /> Brand </span> } columns={columns} copyright="© 2026 Brand. All rights reserved." description="A short line about what the product does goes here." legal={legal} social={social} /> ); export default Example;
Usage
import { Footer, type FooterColumn } from "@produkto/ui/Footer"; import type { BlockLink } from "@produkto/ui/Section";
const columns: FooterColumn[] = [ { title: "Column 1", links: [ { label: "Link 1", link: "#" }, { label: "Link 2", link: "#" }, ], }, { title: "Column 2", links: [ { label: "Link 1", link: "#" }, { label: "Link 2", link: "#" }, ], }, ]; const legal: BlockLink[] = [ { label: "Link 1", link: "#" }, { label: "Link 2", link: "#" }, ]; <Footer brand="Brand" description="A short line about what the product does goes here." columns={columns} legal={legal} copyright="© 2026 Brand. All rights reserved." />
Examples
One row
links gives a small site one row of links in the place of columns.
import { Footer } from "@produkto/ui/Footer"; import { GithubIcon, Hexagon01Icon, NewTwitterIcon, } from "@hugeicons/core-free-icons"; import { Icon } from "@produkto/ui/Icon"; import type { BlockLink, BlockSocialLink } from "@produkto/ui/Section"; const links: BlockLink[] = [ { label: "Link 1", link: "#" }, { label: "Link 2", link: "#" }, { label: "Link 3", link: "#" }, { label: "Link 4", link: "#" }, ]; const social: BlockSocialLink[] = [ { icon: <Icon icon={NewTwitterIcon} />, label: "X", link: "#" }, { icon: <Icon icon={GithubIcon} />, label: "GitHub", link: "#" }, ]; const Example = () => ( <Footer brand={ <span className="flex items-center gap-2"> <Icon icon={Hexagon01Icon} size={22} /> Brand </span> } copyright="© 2026 Brand. All rights reserved." links={links} social={social} /> ); export default Example;
Centred
align="center" sets everything on one centred axis, for a small site, here on the dark theme that closes a page as a deep band.
import { Footer } from "@produkto/ui/Footer"; import { GithubIcon, NewTwitterIcon } from "@hugeicons/core-free-icons"; import { Icon } from "@produkto/ui/Icon"; import type { BlockLink, BlockSocialLink } from "@produkto/ui/Section"; const links: BlockLink[] = [ { label: "Link 1", link: "#" }, { label: "Link 2", link: "#" }, { label: "Link 3", link: "#" }, { label: "Link 4", link: "#" }, ]; const social: BlockSocialLink[] = [ { icon: <Icon icon={NewTwitterIcon} />, label: "X", link: "#" }, { icon: <Icon icon={GithubIcon} />, label: "GitHub", link: "#" }, ]; const legal: BlockLink[] = [ { label: "Link 5", link: "#" }, { label: "Link 6", link: "#" }, ]; const Example = () => ( <Footer align="center" brand="Brand" copyright="© 2026 Brand. All rights reserved." description="A short line about the business goes here." legal={legal} links={links} social={social} theme="dark" /> ); export default Example;
With a closing line
call sets a last title and its button over the footer, above a rule, so the page ends on its ask.
import { Footer } from "@produkto/ui/Footer"; import { GithubIcon, NewTwitterIcon } from "@hugeicons/core-free-icons"; import { Icon } from "@produkto/ui/Icon"; import type { BlockLink, BlockSocialLink } from "@produkto/ui/Section"; const links: BlockLink[] = [ { label: "Link 1", link: "#" }, { label: "Link 2", link: "#" }, { label: "Link 3", link: "#" }, { label: "Link 4", link: "#" }, ]; const social: BlockSocialLink[] = [ { icon: <Icon icon={NewTwitterIcon} />, label: "X", link: "#" }, { icon: <Icon icon={GithubIcon} />, label: "GitHub", link: "#" }, ]; const Example = () => ( <Footer brand="Brand" call={{ title: "Your headline goes here", actions: [{ label: "Primary action", link: "#" }], }} copyright="© 2026 Brand. All rights reserved." description="A short line about the business goes here." links={links} social={social} theme="dark" /> ); export default Example;
The name across
wordmark sets the name large across the footer under its links, between two rules; it is hidden from screen readers, as the page names the business already.
import { Footer } from "@produkto/ui/Footer"; import { GithubIcon, NewTwitterIcon } from "@hugeicons/core-free-icons"; import { Icon } from "@produkto/ui/Icon"; import type { BlockLink, BlockSocialLink } from "@produkto/ui/Section"; const links: BlockLink[] = [ { label: "Link 1", link: "#" }, { label: "Link 2", link: "#" }, { label: "Link 3", link: "#" }, { label: "Link 4", link: "#" }, ]; const social: BlockSocialLink[] = [ { icon: <Icon icon={NewTwitterIcon} />, label: "X", link: "#" }, { icon: <Icon icon={GithubIcon} />, label: "GitHub", link: "#" }, ]; const Example = () => ( <Footer copyright="© 2026 Brand. All rights reserved." description="A short line about the business goes here." links={links} social={social} theme="dark" wordmark="Brand" /> ); export default Example;
With a sign-up form
children go under the brand, here a Label above an email Input with its button.
import { Label } from "@produkto/ui/Label"; import { Footer, type FooterColumn } from "@produkto/ui/Footer"; import { Button } from "@produkto/ui/Button"; import { Input } from "@produkto/ui/Input"; import { Hexagon01Icon } from "@hugeicons/core-free-icons"; import { Icon } from "@produkto/ui/Icon"; import { useId, useState } from "react"; const columns: FooterColumn[] = [ { title: "Column 1", links: [ { label: "Link 1", link: "#" }, { label: "Link 2", link: "#" }, { label: "Link 3", link: "#" }, ], }, { title: "Column 2", links: [ { label: "Link 1", link: "#" }, { label: "Link 2", link: "#" }, { label: "Link 3", link: "#" }, ], }, { title: "Column 3", links: [ { label: "Link 1", link: "#" }, { label: "Link 2", link: "#" }, ], }, ]; const Example = () => { const id = useId(); const [value, setValue] = useState(""); return ( <Footer brand={ <span className="flex items-center gap-2"> <Icon icon={Hexagon01Icon} size={22} /> Brand </span> } columns={columns} copyright="© 2026 Brand. All rights reserved." description="A short line about what the product does goes here." > <div className="flex flex-col gap-2"> <Label htmlFor={id}>Label</Label> <Input end={<Button size="sm">Button</Button>} id={id} onChange={(event) => setValue(event.target.value)} placeholder="Placeholder" type="email" value={value} /> </div> </Footer> ); }; export default Example;
Muted
muted lays the footer on the muted background, apart from the page above it.
import { Footer, type FooterColumn } from "@produkto/ui/Footer"; import { Hexagon01Icon } from "@hugeicons/core-free-icons"; import { Icon } from "@produkto/ui/Icon"; import type { BlockLink } from "@produkto/ui/Section"; const columns: FooterColumn[] = [ { title: "Column 1", links: [ { label: "Link 1", link: "#" }, { label: "Link 2", link: "#" }, { label: "Link 3", link: "#" }, ], }, { title: "Column 2", links: [ { label: "Link 1", link: "#" }, { label: "Link 2", link: "#" }, { label: "Link 3", link: "#" }, ], }, { title: "Column 3", links: [ { label: "Link 1", link: "#" }, { label: "Link 2", link: "#" }, ], }, ]; const legal: BlockLink[] = [ { label: "Link 1", link: "#" }, { label: "Link 2", link: "#" }, ]; const Example = () => ( <Footer brand={ <span className="flex items-center gap-2"> <Icon icon={Hexagon01Icon} size={22} /> Brand </span> } columns={columns} copyright="© 2026 Brand. All rights reserved." description="A short line about what the product does goes here." legal={legal} muted /> ); export default Example;
API Reference
Footer
FooterProps · blocks/Footer/Footer.types.ts| Prop | Type | Default |
|---|---|---|
| id | string | - |
| brand | ReactNode | - |
| description | ReactNode | - |
| columns | FooterColumn[] | - |
| links | BlockLink[] | - |
| social | BlockSocialLink[] | - |
| socialPlacement | FooterSocialPlacement"lead" | "fine" | "lead" |
| legal | BlockLink[] | - |
| copyright | ReactNode | - |
| call | FooterCall | - |
| wordmark | ReactNode | - |
| align | SectionAlign"start" | "center" | "end" | "start" |
| muted | boolean | false |
| theme | ThemeMode"light" | "dark" | - |
| width | SectionWidth"narrow" | "base" | "wide" | "base" |
| className | string | - |
| children | ReactNode | - |
FooterColumn
used by columns| Prop | Type | Default |
|---|---|---|
| titlerequired | string | - |
| linksrequired | BlockLink[] | - |
BlockLink
used by links| Prop | Type | Default |
|---|---|---|
| labelrequired | string | - |
| linkrequired | string | - |
BlockSocialLink
used by social| Prop | Type | Default |
|---|---|---|
| iconrequired | ReactNode | - |
| labelrequired | string | - |
| linkrequired | string | - |
FooterCall
used by call| Prop | Type | Default |
|---|---|---|
| titlerequired | ReactNode | - |
| actionsrequired | (BlockAction | BlockMenuAction)[] | - |
BlockAction
used by its parts| Prop | Type | Default |
|---|---|---|
| appearance | ButtonAppearance"solid" | "soft" | "outline" | "transparent" | - |
| tone | ButtonTone"neutral" | "accent" | "destructive" | "success" | "warning" | "info" | - |
| icon | ReactNode | - |
| iconOnly | boolean | - |
| borderRadius | BlockActionBorderRadius"none" | "xs" | "sm" | "base" | "lg" | "xl" | "full" | - |
| labelrequired | string | - |
| linkrequired | string | - |
BlockMenuAction
used by its parts| Prop | Type | Default |
|---|---|---|
| labelrequired | string | - |
| appearance | ButtonAppearance"solid" | "soft" | "outline" | "transparent" | - |
| tone | ButtonTone"neutral" | "accent" | "destructive" | "success" | "warning" | "info" | - |
| icon | ReactNode | - |
| iconOnly | boolean | - |
| borderRadius | BlockActionBorderRadius"none" | "xs" | "sm" | "base" | "lg" | "xl" | "full" | - |
| itemsrequired | BlockMenuItem[] | - |
BlockMenuItem
used by its parts| Prop | Type | Default |
|---|---|---|
| labelrequired | string | - |
| icon | ReactNode | - |
| link | string | - |
| onSelect | () => void | - |
Social links in the fine print
socialPlacement="fine" moves the social links from under the brand into the row with the copyright, so the columns can take the whole width.