mirror of
https://github.com/adoyle0/leptos-use.git
synced 2025-01-23 00:59:22 -05:00
fixed use_clipboard usage example
This commit is contained in:
parent
90b954c654
commit
318cf15c87
1 changed files with 4 additions and 1 deletions
|
@ -32,7 +32,10 @@ use leptos::*;
|
||||||
/// when=is_supported
|
/// when=is_supported
|
||||||
/// fallback=move || view! { <p>Your browser does not support Clipboard API</p> }
|
/// fallback=move || view! { <p>Your browser does not support Clipboard API</p> }
|
||||||
/// >
|
/// >
|
||||||
/// <button on:click=move |_| copy("Hello!")>
|
/// <button on:click={
|
||||||
|
/// let copy = copy.clone();
|
||||||
|
/// move |_| copy("Hello!")
|
||||||
|
/// }>
|
||||||
/// <Show when=copied fallback=move || "Copy">
|
/// <Show when=copied fallback=move || "Copy">
|
||||||
/// "Copied!"
|
/// "Copied!"
|
||||||
/// </Show>
|
/// </Show>
|
||||||
|
|
Loading…
Add table
Reference in a new issue