Skip to content

Commit

Permalink
chore: test the callback
Browse files Browse the repository at this point in the history
  • Loading branch information
Michael-Liendo committed Jul 20, 2024
1 parent 65e4c92 commit 378e46b
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions crates/web/src/views/home.rs
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
use crate::components::text_field::{TextField, TextFieldType};
use leptos::{component, view, IntoView};
use leptos::{component, leptos_dom::logging, view, IntoView};

use crate::components::button::{Button, ButtonVariant};

Expand All @@ -13,7 +13,7 @@ pub fn Home() -> impl IntoView {
<Button variant={ButtonVariant::Contained}>{"Contained"}</Button>
<Button variant={ButtonVariant::Outlined}>{"Outlined"}</Button>
<TextField r#type=TextFieldType::Text placeholder="Simple" />
<TextField placeholder="Label" label="Input Label" id="label" />
<TextField placeholder="Label" label="Input Label" id="label" on_input=|val: String| logging::console_log(&val) />
<TextField placeholder="Disabled" disabled={true}/>
</section>
}
Expand Down

0 comments on commit 378e46b

Please sign in to comment.