Composite
Footer
Site footer with logo, links, disclaimer, social icons, and language toggle.
Footer component combining a logo, secondary link actions, an optional disclaimer, social icon buttons, a footnote, and an optional language toggle.
Basic footer
Simple footer with logo, social icon buttons, and a copyright footnote.
---
import FooterBlock from '@alfadormx/blocks/composite/Footer.astro';
---
<FooterBlock
logo={{
image: {
src: 'https://images.unsplash.com/photo-1506905925346-21bda4d32df4?w=200&h=200&fit=crop',
alt: 'Logo',
width: 48,
height: 48,
},
}}
socialButtons={[
{ icon: { name: 'heroicons:globe-alt' }, href: '#', variant: 'ghost', intent: 'neutral' },
{ icon: { name: 'heroicons:envelope' }, href: '#', variant: 'ghost', intent: 'neutral' },
]}
footnote="© 2026 My Brand. All rights reserved."
/>Secondary actions, disclaimer and language toggle
Footer with link-style secondary actions next to the logo, a disclaimer block, and a language toggle row.
---
import FooterBlock from '@alfadormx/blocks/composite/Footer.astro';
---
<FooterBlock
logo={{ label: 'My Brand' }}
secondaryButtons={[
{ label: 'Privacy', href: '#', variant: 'link', size: 'sm' },
{ label: 'Terms', href: '#', variant: 'link', size: 'sm' },
]}
disclaimer="Prices and availability are subject to change without notice."
socialButtons={[
{ icon: { name: 'heroicons:globe-alt' }, href: '#', variant: 'ghost', intent: 'neutral' },
{
icon: { name: 'heroicons:chat-bubble-left-right' },
href: '#',
variant: 'ghost',
intent: 'neutral',
},
]}
footnote="© 2026 My Brand. All rights reserved."
languageToggle={{ preservePath: false }}
languageToggleAlign="center"
/>Language toggle styling
languageToggle.defaultButtonConfig is merged over the footer’s link-style default, so it reaches every language button.
---
import FooterBlock from '@alfadormx/blocks/composite/Footer.astro';
---
<FooterBlock
languageToggle={{
preservePath: false,
defaultButtonConfig: { variant: 'outline', class: 'px-3' },
}}
/>API Reference
| Prop | Type | Default | Description |
|---|---|---|---|
| container | ContainerProps | — | Props for the Container wrapping the footer content. |
| disclaimer | RichText | — | Markdown (RichText) rendered as a disclaimer block (e.g. legal or compliance copy); HTML passes through. |
| disclaimerClass | string | — | Additional custom classes applied to the disclaimer block. |
| logo | LogoProps | — | Logo configuration rendered at the top of the footer. |
| footnote | RichText | — | Markdown (RichText) rendered as a footnote (e.g. copyright notice); HTML passes through. |
| footnoteClass | string | — | Additional custom classes applied to the footnote block. |
| socialButtons | ButtonProps[] | [] | Icon buttons alongside the footnote (e.g. social links). |
| defaultSocialButtonConfig | LayerConfig<ButtonProps> | — | Button config merged under every entry in `socialButtons`. |
| socialButtonsClass | string | — | Custom classes for the social buttons wrapper (default: 'md:order-1 flex flex-row gap-1'). |
| secondaryButtons | ButtonProps[] | [] | Link-style buttons under the logo (e.g. "Privacy · Terms"). |
| defaultSecondaryButtonConfig | LayerConfig<ButtonProps> | — | Button config merged under every entry in `secondaryButtons`. |
| secondaryButtonsClass | string | — | Custom classes for the secondary buttons wrapper (default: 'flex flex-row gap-1'). |
| languageToggle | LanguageToggleProps | — | LanguageToggle row; rendered when set (`{}` for defaults). |
| languageToggleAlign | 'left' | 'center' | 'right' | 'center' | Horizontal alignment of the LanguageToggle row (default: 'center'). |