Rust UI component that displays a Copy Button.
Hello, world!
use leptos::prelude::*; use crate::components::extensions::copy_button::CopyButton; use crate::components::ui::input::Input; #[component] pub fn DemoCopyButton() -> impl IntoView { const STRING_TO_COPY: &str = "Hello, world!"; view! { <div class="flex flex-col items-center justify-center gap-6"> <p>{STRING_TO_COPY}</p> <CopyButton string_to_copy=STRING_TO_COPY /> <Input /> </div> } }
# Coming soon :)
// Coming soon 🦀