Skip to content

feat: Add Copy Button to Documentation Code Snippets  #1842

@dipanshurdev

Description

@dipanshurdev

Issue

The documentation currently lacks a copy button next to code snippets, which would make it easier for users to copy the code quickly. This feature is common in many technical docs and helps avoid issues like accidentally missing characters when copying.

screenshot

Screenshot 2025-01-12 214640

Reproduce

  • Add a small copy button next to each <pre> or <code> block in the docs.
  • This button, when clicked, should copy the code to the clipboard.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions