SxFooter (页脚)
- Implemented
NextUI 核心布局组件。应用底部的版权或状态展示区。
使用场景
- 应用底部信息展示
- 版权与版本提示
- 链接或辅助信息区
约束说明
- 仅提供布局容器,不包含默认文本。
行为说明
- 背景色通过
Background控制,支持 CSS 值。
API
Parameters (参数)
| 状态 | 参数名 | 类型 | 默认值 | 描述 |
|---|---|---|---|---|
| Implemented | ChildContent |
RenderFragment? |
null |
页脚内容。 |
| Implemented | Background |
string? |
null |
背景色 (CSS)。 |
| Implemented | Id (继承) |
string? |
null |
组件的物理 Id。 |
| Implemented | Class (继承) |
string? |
null |
自定义 CSS 类名。 |
| Implemented | Style (继承) |
string? |
null |
自定义样式。 |
| Implemented | Title (继承) |
string? |
null |
HTML title 属性。 |
| Implemented | AdditionalAttributes (继承) |
IEnumerable<KeyValuePair<string, object>>? |
null |
捕获不匹配的 HTML 属性。 |
示例
<SxFooter Background="var(--sx-colorNeutralBackground1)">
<SxTypography Variant="TypographyVariant.Caption">© 2026 NextUI</SxTypography>
</SxFooter>