Skip to main content

tmf_leptos/common/
has_id.rs

1//! HasId Forms
2
3use leptos::prelude::*;
4
5use tmflib::HasId;
6
7#[component]
8pub fn BasicClass<T: HasId>(item: T) -> impl IntoView {
9    let id = item.get_id();
10    let href = item.get_href();
11    view! {
12        <label for="id">"Link"</label>
13        <a href=href>{ id }</a><br />
14    }
15}