shield-leptos 0.3.0

Leptos integration for Shield.
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
use leptos::prelude::*;
use leptos_router::{MatchNestedRoutes, components::Route, path};

use crate::routes::Action;

#[component(transparent)]
pub fn ShieldRouter() -> impl MatchNestedRoutes + Clone {
    view! {
        <Route path=path!("/") view=Action />
        <Route path=path!("/:action_id") view=Action />
    }
    .into_inner()
}