Expand description
顶部导航栏组件。 顶部导航栏组件
提供站点 Logo、响应式导航菜单项与右侧自定义内容区, 支持前台布局与后台布局复用,并包含小屏幕下的汉堡菜单。
Re-exports§
pub use Header_completions::Component::Header;pub use SearchIconLink_completions::Component::SearchIconLink;
Structs§
- Header
Props - Properties for the
Headercomponent. - Mobile
NavItem 🔒Props - Properties for the
MobileNavItemcomponent. - NavItem
Config - 导航项配置,用于描述 Header 中的一个链接。
- NavItem
Props 🔒 - Properties for the
NavItemcomponent.
Functions§
- Header
- 顶部导航栏组件。
- Mobile
NavItem 🔒 - 单个移动端导航项组件,点击后关闭菜单。
- NavItem 🔒
- 单个桌面导航项组件,根据
is_active切换高亮样式。 - Search
Icon Link - 搜索图标链接:置于 Header 右侧(主题切换左边),点击跳转搜索页。