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