Documentation / Mise en page
Footer
Le pied de page d’un site ou d’une application, composé de briques indépendantes : Footer (l’élément <footer>, sa variante et sa hauteur), FooterSection (une grille de 1 à 6 colonnes, responsive), FooterColumn (un titre et ses liens), FooterLink, FooterSocial / FooterSocialLink et FooterBottom (la ligne de copyright).
Quatre variantes : default, bordered, minimal et dark. sticky le colle au bas de la fenêtre. FooterLink avec external ouvre un nouvel onglet (rel="noopener noreferrer") ; FooterSocialLink le fait toujours et prend son nom accessible de label. Aucun hook : le pied de page se rend côté serveur.
Le copyright est celui de l’application : FooterBottom n’écrit ni nom, ni année, ni mention de droits de lui-même. copyright prend un texte ou n’importe quel contenu, un lien vers le site du titulaire par exemple.
Exemples
Pied de page minimal
Une seule ligne : le copyright et quelques liens légaux, posés directement dans Footer — FooterBottom ajouterait un filet et une marge supérieure.
import { Footer, FooterLink } from "@synertech/ui";
export function Minimal() {
return (
<Footer variant="minimal" size="sm">
<div className="flex flex-col items-center justify-between gap-4 text-sm sm:flex-row">
<p>© 2026 Synertech. Tous droits réservés.</p>
<nav aria-label="Mentions" className="flex gap-4">
<FooterLink href="/mentions-legales">Mentions légales</FooterLink>
<FooterLink href="/confidentialite">Confidentialité</FooterLink>
</nav>
</div>
</Footer>
);
}Colonnes de liens
FooterSection répartit les FooterColumn sur une grille qui passe d’une à columns colonnes selon la largeur.
import { Footer, FooterBottom, FooterColumn, FooterLink, FooterSection } from "@synertech/ui";
export function Columns() {
return (
<Footer variant="bordered">
<FooterSection columns={3}>
<FooterColumn title="Produit">
<FooterLink href="/fonctionnalites">Fonctionnalités</FooterLink>
<FooterLink href="/tarifs">Tarifs</FooterLink>
</FooterColumn>
<FooterColumn title="Ressources">
<FooterLink href="/documentation">Documentation</FooterLink>
<FooterLink href="https://ui.synertechweb.com/" external>
Storybook
</FooterLink>
</FooterColumn>
<FooterColumn title="Entreprise">
<FooterLink href="/a-propos">À propos</FooterLink>
<FooterLink href="/contact">Contact</FooterLink>
</FooterColumn>
</FooterSection>
<FooterBottom copyright="© 2026 Synertech" />
</Footer>
);
}Réseaux sociaux
FooterSocialLink n’affiche qu’une icône : label devient son aria-label.
import { Footer, FooterBottom, FooterColumn, FooterSection, FooterSocial, FooterSocialLink } from "@synertech/ui";
const LinkedInIcon = () => (
<svg className="h-5 w-5" viewBox="0 0 24 24" fill="currentColor" aria-hidden="true">
<path d="M4.98 3.5a2.5 2.5 0 11-.01 5 2.5 2.5 0 01.01-5zM3 9h4v12H3zM9 9h3.8v1.7h.05c.53-1 1.83-2.05 3.77-2.05 4.03 0 4.78 2.65 4.78 6.1V21h-4v-5.5c0-1.3-.02-3-1.83-3-1.84 0-2.12 1.43-2.12 2.9V21H9z" />
</svg>
);
const MailIcon = () => (
<svg
className="h-5 w-5"
fill="none"
viewBox="0 0 24 24"
stroke="currentColor"
strokeWidth={2}
aria-hidden="true"
>
<path
strokeLinecap="round"
strokeLinejoin="round"
d="M3 8l9 6 9-6M5 19h14a2 2 0 002-2V7a2 2 0 00-2-2H5a2 2 0 00-2 2v10a2 2 0 002 2z"
/>
</svg>
);
export function Social() {
return (
<Footer size="sm">
<FooterSection columns={2}>
<FooterColumn title="Suivez-nous">
<FooterSocial>
<FooterSocialLink
href="https://www.linkedin.com/"
label="LinkedIn"
icon={<LinkedInIcon />}
/>
<FooterSocialLink
href="mailto:contact@exemple.fr"
label="Nous écrire"
icon={<MailIcon />}
/>
</FooterSocial>
</FooterColumn>
</FooterSection>
<FooterBottom copyright="© 2026 Synertech" />
</Footer>
);
}Variante sombre
Le fond reste sombre quel que soit le thème, mais titres et liens gardent leurs couleurs de fond clair : cn() ne fusionne pas les classes, d’où le suffixe d’importance ! de Tailwind 4 pour les remplacer.
import { Footer, FooterBottom, FooterColumn, FooterLink, FooterSection } from "@synertech/ui";
export function Dark() {
return (
<Footer variant="dark" size="lg">
<FooterSection columns={2}>
<FooterColumn title="Support" titleClassName="text-white!">
<FooterLink href="/aide" className="text-gray-400! hover:text-white!">
Centre d’aide
</FooterLink>
<FooterLink href="/statut" className="text-gray-400! hover:text-white!">
État des services
</FooterLink>
</FooterColumn>
<FooterColumn title="Légal" titleClassName="text-white!">
<FooterLink href="/cgu" className="text-gray-400! hover:text-white!">
Conditions d’utilisation
</FooterLink>
</FooterColumn>
</FooterSection>
<FooterBottom copyright="© 2026 Synertech" className="border-gray-700!" />
</Footer>
);
}Référence d’API
Composants
import { Footer } from "@synertech/ui";Props — FooterProps
| Prop | Type | Défaut | Description |
|---|---|---|---|
children |
ReactNode |
— | |
size |
"sm" | "md" | "lg" |
"md" |
|
sticky |
boolean |
false |
|
variant |
"default" | "bordered" | "minimal" | "dark" |
"default" |
+ 278 attributs natifs hérités de HTMLAttributes, AriaAttributes, DOMAttributes (className, id, aria-*, gestionnaires d’événements…).
import { FooterBottom } from "@synertech/ui";Props — FooterBottomProps
| Prop | Type | Défaut | Description |
|---|---|---|---|
children |
ReactNode |
— | Ce qui se place à côté de la ligne de copyright : liens légaux, menu de langue, icônes de réseaux sociaux. |
copyright |
ReactNode |
— | La ligne de copyright, telle que l’application l’écrit : le composant n’ajoute ni nom, ni année, ni « Tous droits réservés » de lui-même. Un texte, ou n’importe quel contenu : un lien vers le site du titulaire, une phrase traduite, une année calculée par l’application. Sans elle, rien n’est dessiné. |
+ 278 attributs natifs hérités de HTMLAttributes, AriaAttributes, DOMAttributes (className, id, aria-*, gestionnaires d’événements…).
import { FooterColumn } from "@synertech/ui";Props — FooterColumnProps
| Prop | Type | Défaut | Description |
|---|---|---|---|
children |
ReactNode |
— | |
title |
string |
— | |
titleClassName |
string |
— |
+ 277 attributs natifs hérités de HTMLAttributes, AriaAttributes, DOMAttributes (className, id, aria-*, gestionnaires d’événements…).
import { FooterLink } from "@synertech/ui";Props — FooterLinkProps
| Prop | Type | Défaut | Description |
|---|---|---|---|
external |
boolean |
false |
Ouvre le lien dans un nouvel onglet, |
href |
string |
— | Où il mène. Une adresse |
linkComponent |
UILinkComponent |
— | Le lien du routeur de l’application ( |
+ 286 attributs natifs hérités de AnchorHTMLAttributes, HTMLAttributes, AriaAttributes (className, id, aria-*, gestionnaires d’événements…).
import { FooterSection } from "@synertech/ui";Props — FooterSectionProps
| Prop | Type | Défaut | Description |
|---|---|---|---|
children |
ReactNode |
— | |
columns |
1 | 2 | 3 | 4 | 5 | 6 |
— | |
title |
string |
— | |
titleClassName |
string |
— |
+ 277 attributs natifs hérités de HTMLAttributes, AriaAttributes, DOMAttributes (className, id, aria-*, gestionnaires d’événements…).
import { FooterSocial } from "@synertech/ui";Props — FooterSocialProps
| Prop | Type | Défaut | Description |
|---|---|---|---|
children |
ReactNode |
— |
+ 278 attributs natifs hérités de HTMLAttributes, AriaAttributes, DOMAttributes (className, id, aria-*, gestionnaires d’événements…).
import { FooterSocialLink } from "@synertech/ui";Props — FooterSocialLinkProps
| Prop | Type | Défaut | Description |
|---|---|---|---|
icon• |
ReactNode |
— | |
label• |
string |
— | |
href |
string |
— | Où il mène. Une adresse |
rel |
string |
— | Ajouté à |
+ 285 attributs natifs hérités de AnchorHTMLAttributes, HTMLAttributes, AriaAttributes (className, id, aria-*, gestionnaires d’événements…).