Feature Description
Add a copy-to-clipboard button for code snippets and command blocks across the platform.
The button should allow users to quickly copy code/examples without manually selecting the text.
Problem It Solves
Currently, users have to manually select and copy code snippets or terminal commands from the documentation pages. This becomes inconvenient, especially for longer code blocks or mobile users.
A dedicated copy button would improve usability and make the learning experience smoother.
Proposed Solution
Implement a copy button for all code blocks that:
- copies the content to the clipboard on click
- provides visual feedback such as "Copied!"
- works properly on both desktop and mobile devices
- maintains consistency with the current UI/theme
The implementation should remain lightweight and avoid unnecessary dependencies where possible.
Additional Context
The feature can behave similarly to copy buttons commonly seen in modern documentation platforms and developer websites.
Feature Description
Add a copy-to-clipboard button for code snippets and command blocks across the platform.
The button should allow users to quickly copy code/examples without manually selecting the text.
Problem It Solves
Currently, users have to manually select and copy code snippets or terminal commands from the documentation pages. This becomes inconvenient, especially for longer code blocks or mobile users.
A dedicated copy button would improve usability and make the learning experience smoother.
Proposed Solution
Implement a copy button for all code blocks that:
The implementation should remain lightweight and avoid unnecessary dependencies where possible.
Additional Context
The feature can behave similarly to copy buttons commonly seen in modern documentation platforms and developer websites.