mirror of
https://github.com/blitzkit/blitzkit.git
synced 2026-10-28 21:19:52 +01:00
feat: tooltip for embed button
This commit is contained in:
1 parent
49f601d200
commit
168ab1e1a1
1 file changed
+14
-8
@@ -9,6 +9,7 @@ import {
|
|||||||
Flex,
|
Flex,
|
||||||
Text,
|
Text,
|
||||||
TextField,
|
TextField,
|
||||||
|
Tooltip,
|
||||||
} from '@radix-ui/themes';
|
} from '@radix-ui/themes';
|
||||||
import { debounce } from 'lodash';
|
import { debounce } from 'lodash';
|
||||||
import { ChangeEvent, useRef, useState } from 'react';
|
import { ChangeEvent, useRef, useState } from 'react';
|
||||||
@@ -202,14 +203,19 @@ export default function Page() {
|
|||||||
</Flex>
|
</Flex>
|
||||||
</AlertDialog.Content>
|
</AlertDialog.Content>
|
||||||
</AlertDialog.Root>
|
</AlertDialog.Root>
|
||||||
<Button
|
|
||||||
className={styles.toolbarButton}
|
<Tooltip content="Copy to clipboard">
|
||||||
onClick={() =>
|
<Button
|
||||||
navigator.clipboard.writeText(`${location.origin}/embeds/session`)
|
className={styles.toolbarButton}
|
||||||
}
|
onClick={() =>
|
||||||
>
|
navigator.clipboard.writeText(
|
||||||
<CopyIcon width="16" height="16" /> Embed
|
`${location.origin}/embeds/session`,
|
||||||
</Button>
|
)
|
||||||
|
}
|
||||||
|
>
|
||||||
|
<CopyIcon width="16" height="16" /> Embed
|
||||||
|
</Button>
|
||||||
|
</Tooltip>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
|
|||||||
Reference in new issue
Block a user