Svelte Footer - Bitblue

Page footers with brand, link groups, icons, and copyright

Compose site footers from Footer plus brand, link, icon, and copyright subcomponents.

Setup

<script lang="ts">
	import {
		Footer,
		FooterBrand,
		FooterCopyright,
		FooterIcon,
		FooterLink,
		FooterLinkGroup
	} from '.';
</script>

Default

<script lang="ts">
	import {
		Footer,
		FooterBrand,
		FooterCopyright,
		FooterIcon,
		FooterLink,
		FooterLinkGroup
	} from '.';
</script>

<Footer>
	<div class="w-full">
		<FooterBrand href="/" name="Bitblue" />
		<FooterLinkGroup>
			<FooterLink href="/docs">Docs</FooterLink>
		</FooterLinkGroup>
		<FooterCopyright href="/" by="Bitblue" />
		<FooterIcon href="#" ariaLabel="GitHub">…</FooterIcon>
	</div>
</Footer>

Footer types

footerType switches layout chrome: default, sitemap, socialmedia, logo, or sticky (fixed to the bottom).

<script lang="ts">
	import { Footer, FooterBrand, FooterLink, FooterLinkGroup } from '.';
</script>

<Footer footerType="logo">
	<FooterBrand href="/" name="Bitblue" />
	<FooterLinkGroup>
		<FooterLink href="/docs">Docs</FooterLink>
	</FooterLinkGroup>
</Footer>

Brand with image

<script lang="ts">
	import { FooterBrand } from '.';
</script>

<FooterBrand href="/" src="/favicon.png" alt="Bitblue" name="Bitblue" />

Copyright options

<script lang="ts">
	import { FooterCopyright } from '.';
</script>

<FooterCopyright href="/" by="Bitblue" year={2026} copyrightMessage="All Rights Reserved." />

Props

Footer

PropTypeDefaultDescription
childrenSnippet—Footer content
footerType'default' | 'sticky' | 'sitemap' | 'socialmedia' | 'logo''default'Layout / chrome variant
classClassValue—Extra classes
...restHTMLAttributes<HTMLElement>—Root <footer> attributes

FooterBrand

PropTypeDefaultDescription
hrefstring—Brand link; without href, only the image is rendered
srcstring—Logo image URL
altstring—Image alt text
namestring—Brand text next to the logo
childrenSnippet—Extra content inside the brand link
aClass / spanClass / imgClassClassValue—Slot class overrides
...restHTMLAnchorAttributes—Anchor attributes

FooterCopyright

PropTypeDefaultDescription
hrefstring—Link around the by name
bystring—Rights holder name
yearnumbercurrent yearCopyright year
copyrightMessagestring'All Rights Reserved.'Trailing message
aClass / spanClass / bySpanClassClassValue—Class overrides
classestheme slots—Preferred slot overrides (link, bySpan)
...restHTMLAnchorAttributes—Anchor attributes

FooterIcon

PropTypeDefaultDescription
childrenSnippet—Icon markup (required)
hrefstring—Icon link
ariaLabelstring—Accessible label
...restHTMLAnchorAttributes—Anchor attributes

FooterLink

PropTypeDefaultDescription
childrenSnippet—Link label (required)
hrefstring—Destination
liClass / aClassClassValue—List item / anchor classes
...restHTMLAnchorAttributes—Anchor attributes

FooterLinkGroup

PropTypeDefaultDescription
childrenSnippet—FooterLink children (required)
...restHTMLAttributes<HTMLUListElement>—Root <ul> attributes

© 2026 Bitblue is a registered trademark. All Rights Reserved.