pib-components-dx-base 0.0.0-upstream-snapshot.2026-09-19.1

temporary fork for Politik im Blick - Dioxus components
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
use super::super::component::*;
use dioxus::prelude::*;

#[component]
pub fn Demo() -> Element {
    let mut name = use_signal(String::new);
    rsx! {
        Input {
            oninput: move |e: FormEvent| name.set(e.value()),
            placeholder: "Enter your name",
            value: name,
        }
        if !name.read().is_empty() {
            p { id: "input-greeting", "Hello, {name}!" }
        }
    }
}