Page Footer

网站页脚:你的品牌、位于具名导航中的带标题链接栏,以及包含版权信息和自定义内容的底部行,置于 footer 元素中。

可用框架
  • Angular: 可用
  • Vue: 可用
  • React: 可用
  • React Native: 暂不可用

用法

导入

ts
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.

选择器
[sonePageFooterBrand]

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.

选择器
sone-page-footer
输入
名称类型 默认值
columnsreadonly PageFooterColumn[][]
copyright

The copyright line of the bottom row: `© 2026 MonoOne`.

string | nullnull
ariaLabel

Names the columns' navigation landmark.

—$localize`:A site footer's link columns:Footer`
level

The column titles' heading level, 1–6.

HeadingLevel3

SonePageFooterLeftDirective指令

`[sonePageFooterLeft]` — the start of the bottom row, after the copyright.

选择器
[sonePageFooterLeft]

SonePageFooterRightDirective指令

`[sonePageFooterRight]` — the end of the bottom row: social links, a theme switch.

选择器
[sonePageFooterRight]