tmf-leptos 0.1.4

Library to render TMF schema as forms
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
//! HasId Forms

use leptos::prelude::*;

use tmflib::HasId;

#[component]
pub fn BasicClass<T: HasId>(item: T) -> impl IntoView {
    let id = item.get_id();
    let href = item.get_href();
    view! {
        <label for="id">"Link"</label>
        <a href=href>{ id }</a><br />
    }
}