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
| Prop | Type | Default | Description |
children | Snippet | — | Footer content |
footerType | 'default' | 'sticky' | 'sitemap' | 'socialmedia' | 'logo' | 'default' | Layout / chrome variant |
class | ClassValue | — | Extra classes |
...rest | HTMLAttributes<HTMLElement> | — | Root <footer> attributes |
FooterBrand
| Prop | Type | Default | Description |
href | string | — | Brand link; without href, only the image is rendered |
src | string | — | Logo image URL |
alt | string | — | Image alt text |
name | string | — | Brand text next to the logo |
children | Snippet | — | Extra content inside the brand link |
aClass / spanClass / imgClass | ClassValue | — | Slot class overrides |
...rest | HTMLAnchorAttributes | — | Anchor attributes |
FooterCopyright
| Prop | Type | Default | Description |
href | string | — | Link around the by name |
by | string | — | Rights holder name |
year | number | current year | Copyright year |
copyrightMessage | string | 'All Rights Reserved.' | Trailing message |
aClass / spanClass / bySpanClass | ClassValue | — | Class overrides |
classes | theme slots | — | Preferred slot overrides (link, bySpan) |
...rest | HTMLAnchorAttributes | — | Anchor attributes |
FooterIcon
| Prop | Type | Default | Description |
children | Snippet | — | Icon markup (required) |
href | string | — | Icon link |
ariaLabel | string | — | Accessible label |
...rest | HTMLAnchorAttributes | — | Anchor attributes |
FooterLink
| Prop | Type | Default | Description |
children | Snippet | — | Link label (required) |
href | string | — | Destination |
liClass / aClass | ClassValue | — | List item / anchor classes |
...rest | HTMLAnchorAttributes | — | Anchor attributes |
FooterLinkGroup
| Prop | Type | Default | Description |
children | Snippet | — | FooterLink children (required) |
...rest | HTMLAttributes<HTMLUListElement> | — | Root <ul> attributes |