You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Currently, there are components on the site where an input displays a shareable link (e.g., http://example.com/link/to/document), but there's no built-in functionality to copy the link directly.
I propose enhancing the UX by adding a "Copy Link" button that uses the navigator.clipboard.writeText() API to copy the input value to the clipboard when clicked.
This can be implemented using a ref to access the input value and a simple click handler. It's a lightweight, non-breaking feature that improves usability and accessibility when sharing component links or documentation.
I'd be happy to open a PR for this.
Affected component/components
Button, Input
Additional Context
Addition this feature improves the UX for users trying to copy shareable links or generated text.
Before submitting
I've made research efforts and searched the documentation
I've searched for existing issues and PRs
The text was updated successfully, but these errors were encountered:
Feature description
Currently, there are components on the site where an input displays a shareable link (e.g., http://example.com/link/to/document), but there's no built-in functionality to copy the link directly.
I propose enhancing the UX by adding a "Copy Link" button that uses the
navigator.clipboard.writeText()
API to copy the input value to the clipboard when clicked.This can be implemented using a
ref
to access the input value and a simple click handler. It's a lightweight, non-breaking feature that improves usability and accessibility when sharing component links or documentation.I'd be happy to open a PR for this.
Affected component/components
Button, Input
Additional Context
Addition this feature improves the UX for users trying to copy shareable links or generated text.
Before submitting
The text was updated successfully, but these errors were encountered: