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.

Simple footer with logo, social icon buttons, and a copyright footnote.

Logo
© 2026 My Brand. All rights reserved.
basic
---
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.

secondary-actions
---
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.

language-toggle
---
import FooterBlock from '@alfadormx/blocks/composite/Footer.astro';
---

<FooterBlock
  languageToggle={{
    preservePath: false,
    defaultButtonConfig: { variant: 'outline', class: 'px-3' },
  }}
/>

API Reference

PropTypeDefaultDescription
containerContainerProps—Props for the Container wrapping the footer content.
disclaimerRichText—Markdown (RichText) rendered as a disclaimer block (e.g. legal or compliance copy); HTML passes through.
disclaimerClassstring—Additional custom classes applied to the disclaimer block.
logoLogoProps—Logo configuration rendered at the top of the footer.
footnoteRichText—Markdown (RichText) rendered as a footnote (e.g. copyright notice); HTML passes through.
footnoteClassstring—Additional custom classes applied to the footnote block.
socialButtonsButtonProps[][]Icon buttons alongside the footnote (e.g. social links).
defaultSocialButtonConfigLayerConfig<ButtonProps>—Button config merged under every entry in `socialButtons`.
socialButtonsClassstring—Custom classes for the social buttons wrapper (default: 'md:order-1 flex flex-row gap-1').
secondaryButtonsButtonProps[][]Link-style buttons under the logo (e.g. "Privacy · Terms").
defaultSecondaryButtonConfigLayerConfig<ButtonProps>—Button config merged under every entry in `secondaryButtons`.
secondaryButtonsClassstring—Custom classes for the secondary buttons wrapper (default: 'flex flex-row gap-1').
languageToggleLanguageToggleProps—LanguageToggle row; rendered when set (`{}` for defaults).
languageToggleAlign'left' | 'center' | 'right''center'Horizontal alignment of the LanguageToggle row (default: 'center').