Page Footer
网站页脚:你的品牌、位于具名导航中的带标题链接栏,以及包含版权信息和自定义内容的底部行,置于 footer 元素中。
Angular: 可用 Vue: 可用 React: 可用 React Native: 暂不可用
用法
<sone-page-footer
ariaLabel="Demo footer"
copyright="© 2026 Acme Notes"
[columns]="columns"
>
<div sonePageFooterBrand style="display: grid; gap: var(--space-1)">
<strong style="color: var(--text-primary)">Acme Notes</strong>
<span>Every meeting, written down.</span>
</div>
<a
sonePageFooterRight
soneBtn
variant="ghost"
size="icon"
href="#newsletter"
aria-label="Newsletter"
>
<sone-icon icon="mail" />
</a>
</sone-page-footer>导入
import {
SonePageFooterBrandDirective,
SonePageFooterComponent,
SonePageFooterLeftDirective,
SonePageFooterRightDirective,
} from "@surface-one/angular/page-footer";API 参考
SonePageFooterBrandDirective指令
`[sonePageFooterBrand]` — the logo and a line about the site, before the columns.
SonePageFooterComponent组件
`<sone-page-footer>` — the footer of a site (Nuxt UI Footer and FooterColumns): your brand (`[sonePageFooterBrand]`), titled `columns` of links in a named `nav` (column titles are headings, `level` 3 by default), then a bottom row with the `copyright` line and `[sonePageFooterLeft]` / `[sonePageFooterRight]` content (social links, a theme switch). It renders a `<footer>`, the page's content info when it sits outside `main`. The columns sit beside the brand once the footer is wide enough.
| 名称 | 类型 | 默认值 |
|---|---|---|
columns | readonly PageFooterColumn[] | [] |
copyrightThe copyright line of the bottom row: `© 2026 MonoOne`. | string | null | null |
ariaLabelNames the columns' navigation landmark. | — | $localize`:A site footer's link columns:Footer` |
levelThe column titles' heading level, 1–6. | HeadingLevel | 3 |
SonePageFooterLeftDirective指令
`[sonePageFooterLeft]` — the start of the bottom row, after the copyright.
SonePageFooterRightDirective指令
`[sonePageFooterRight]` — the end of the bottom row: social links, a theme switch.