use leptos::*;
use leptos_use::docs::{demo_or_body, Note};
use leptos_use::{use_clipboard, use_permission, UseClipboardReturn};
#[component]
fn Demo() -> impl IntoView {
let (input, set_input) = create_signal("".to_owned());
let UseClipboardReturn {
is_supported,
text,
copied,
copy,
} = use_clipboard();
let permission_read = use_permission("clipboard-read");
let permission_write = use_permission("clipboard-write");
view! {
Currently copied: {move || text().unwrap_or("none".to_owned())}