mirror of
https://github.com/DioxusLabs/dioxus
synced 2024-11-14 00:17:17 +00:00
chore(docs): fixed typo in router-macro
This commit is contained in:
parent
a3d6e9d07a
commit
8beb3c7893
1 changed files with 1 additions and 1 deletions
|
@ -162,7 +162,7 @@ mod segment;
|
||||||
///
|
///
|
||||||
/// # `#[layout(component)]`
|
/// # `#[layout(component)]`
|
||||||
///
|
///
|
||||||
/// The `#[layout]` attribute is used to define a layout. It takes 1 parameters:
|
/// The `#[layout]` attribute is used to define a layout. It takes 1 parameter:
|
||||||
/// - `component`: The component to render when the route is matched. If not specified, the name of the variant is used
|
/// - `component`: The component to render when the route is matched. If not specified, the name of the variant is used
|
||||||
///
|
///
|
||||||
/// The layout component allows you to wrap all children of the layout in a component. The child routes are rendered in the Outlet of the layout component. The layout component must take all dynamic parameters of the nests it is nested in.
|
/// The layout component allows you to wrap all children of the layout in a component. The child routes are rendered in the Outlet of the layout component. The layout component must take all dynamic parameters of the nests it is nested in.
|
||||||
|
|
Loading…
Reference in a new issue