Skip to main content

Module header

Module header 

Source
Expand description

顶部导航栏组件。 顶部导航栏组件

提供站点 Logo、响应式导航菜单项与右侧自定义内容区, 支持前台布局与后台布局复用,并包含小屏幕下的汉堡菜单。

Re-exports§

pub use Header_completions::Component::Header;

Structs§

HeaderProps
Properties for the Header component.
MobileNavItemProps 🔒
Properties for the MobileNavItem component.
NavItemConfig
导航项配置,用于描述 Header 中的一个链接。
NavItemProps 🔒
Properties for the NavItem component.

Functions§

Header
顶部导航栏组件。
MobileNavItem 🔒
单个移动端导航项组件,点击后关闭菜单。
NavItem 🔒
单个桌面导航项组件,根据 is_active 切换高亮样式。
SearchIconLink
搜索图标链接:置于 Header 右侧(主题切换左边),点击跳转搜索页。