Skip to main content

Header

Function Header 

Source
pub fn Header(props: HeaderProps) -> impl IntoView
Expand description

顶部导航栏组件。

Props:

  • nav_items:导航项列表(随路径变化)
  • right_content:右侧自定义内容(如搜索入口、主题切换)
  • max_width:内部导航的宽度类,需与正文 max-w-* 一致以保证左右边缘对齐

§Required Props

§Optional Props

  • max_width: [&'static str]