mirror of
https://github.com/blitzkit/blitzkit.git
synced 2026-10-23 19:49:50 +02:00
feat: copy base64
This commit is contained in:
1 parent
0365656a0e
commit
09f5d4e3f7
1 file changed
+5
-1
@@ -248,7 +248,11 @@ function ComponentDisplay({
|
|||||||
<IconButton
|
<IconButton
|
||||||
size="1"
|
size="1"
|
||||||
variant="ghost"
|
variant="ghost"
|
||||||
onClick={() => console.log(value.value)}
|
onClick={() => {
|
||||||
|
navigator.clipboard.writeText(
|
||||||
|
btoa(String.fromCharCode(...value.value)),
|
||||||
|
);
|
||||||
|
}}
|
||||||
>
|
>
|
||||||
<DiscIcon />
|
<DiscIcon />
|
||||||
</IconButton>
|
</IconButton>
|
||||||
|
|||||||
Reference in new issue
Block a user