Skip to main content

Router

Function Router 

Source
pub fn Router<Chil>(props: RouterProps<Chil>) -> impl IntoView
where Chil: IntoView,
Expand description

§Required Props

  • children: TypedChildren<Chil>
    • The <Router/> should usually wrap your whole page. It can contain any elements, and should include a Routes component somewhere to define and display Routes.

§Optional Props

  • base: [impl Into<Cow<'static, str>>](Cow<’static, str>)
    • The base URL for the router. Defaults to "".
  • set_is_routing: impl Into<SignalSetter<bool>>
    • A signal that will be set while the navigation process is underway.