Site footer
Link columns, social links and legal links are props. The newsletter, payment badges and region switcher are optional, so a marketing site and a shop can share one footer.
Options
Section titled “Options”layout:columns(default),simple(one row of links),centeredsurface:light,alternate,brand,darksiteName: used for the default copyright line,© <year> <siteName>copyright: replaces the default copyright lineblurb,social: brand column text and{ label, href, icon }links (SocialLinks)columns: list of{ heading, links };simpleandcenteredflatten them into one rowlegal: list of{ label, href }in the bottom barnewsletter:{ title, text, action, button }adds a NewsletterForm band above the columnspayments: list of payment method names, shown as small text badgeslocales,currencies: lists of{ label, value, selected }; adds a region and currency form that submits tolocaleActionwith GETid: footer id, also prefixes the form field ids (defaultsite-footer)- Slots:
logo,newsletter(replaces the built-in form), and the default slot for anything extra. In thecolumnslayout each child of the default slot becomes its own column
<SiteFooter siteName="Samla" blurb="An Astro-first library of elements, components and sections." social={[{ label: "Samla on GitHub", href: "https://github.com/benwellby/samla", icon: "github" }]} columns={[{ heading: "Docs", links: [{ label: "Getting started", href: "/getting-started/" }] }]} legal={[{ label: "Licence", href: "/licence/" }]}> <Logo href="/" slot="logo">samla<span aria-hidden="true">.</span></Logo></SiteFooter>