Layout
Footer
The bottom area of a page layout, for copyright, secondary links and the like. It takes the footer area of the grid that tk:main builds, so it sits under the main content and next to the sidebar when there is one.
Nothing to show
A <footer> under the main content, with padding and a light gray background (dark gray in dark mode).
Centered content #
The background still spans the whole width, while the content is held in a centered column, as tk:container with that size. container alone (true) uses the container's default width.
Nothing to show
Always in view #
The footer sticks to the bottom of the viewport while the page scrolls, over the content, with a top border and a shadow. inverse gives it a dark background (light in dark mode).
Nothing to show
Variants #
variant sets the background: subtle, strong, inverse, accent, ghost, or a color name for a tinted one.
Nothing to show
Customization #
Classes go to the <footer>; with container, the container: prefix reaches the centered column, which also holds the padding.
Nothing to show
Reference
tk:footer
| Prop | Type | Default | Description |
|---|---|---|---|
sticky |
bool | false |
Keeps the footer at the bottom of the viewport while the page scrolls. |
container |
bool | string | false |
Holds the content in a centered column: true for the default width, or a size (xs, sm, md, lg, xl, 2xl, 3xl, full). |
variant |
string | light gray | The background: subtle (white), strong, inverse, accent, ghost (transparent), none (no classes), or a color name for a tinted one (blue, green...). |
Slots
| Slot | Description |
|---|---|
| default | The footer content. |
Prefixes
| Prefix | Goes to |
|---|---|
container: |
The centered column, when container is set. |
Customization
Classes and attributes on the tag go to the <footer>. With container, the content is inside a container <div>, reached with a prefix (listed in the Reference above).
Nothing to show
The padding (p-6, lg:p-8) is on the <footer> itself, or on the container when container is set.
Accessibility
A native <footer>; placed at the top level of the page, outside <main> and <article>, browsers expose it as the contentinfo landmark.
Behavior notes
- The footer takes its place from the grid set up by
tk:mainon their common parent. Outside that layout it is a plain block. - With a
tk:aside, the aside runs down beside the footer on large screens; belowlgthe footer comes after the aside.