-
Notifications
You must be signed in to change notification settings - Fork 7
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #4 from rossrobino/feat--copy-button-reactivity
feat: copy button reactivity
- Loading branch information
Showing
4 changed files
with
31 additions
and
21 deletions.
There are no files selected for viewing
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,9 @@ | ||
<script lang="ts"> | ||
import { CopyButton } from "$lib"; | ||
let value = "Text to copy"; | ||
</script> | ||
|
||
<CopyButton class="btn" blobParts={["Text to copy"]} /> | ||
<input class="input mb-4" type="text" bind:value /> | ||
|
||
<CopyButton class="btn" blobParts={[value]} /> |
b33b2d1
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Successfully deployed to the following URLs:
drab – ./
drab-rossrobino.vercel.app
components.robino.dev
drab.robino.dev
drab-git-main-rossrobino.vercel.app