Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add a copy button to code snippets #6

Open
copypasteov opened this issue Mar 2, 2024 · 0 comments
Open

Add a copy button to code snippets #6

copypasteov opened this issue Mar 2, 2024 · 0 comments
Assignees

Comments

@copypasteov
Copy link
Collaborator

copypasteov commented Mar 2, 2024

Describe the solution you'd like
Add a button that allows to copy a code snippet, append to each code snippet pre element

  • you can use the ClipboardCopyButtonDirective that @jhonacs2 added in the angular app version
  • place it in a directives folder same level as the components folder
  • use a p-button and optionally add an icon
  • have a look at how it's done on Hashnode for inspiration
@copypasteov copypasteov added 🌟feature New feature or request good first issue Good for newcomers 🎨 styling labels Mar 2, 2024
@copypasteov copypasteov self-assigned this Mar 6, 2024
@monacodelisa monacodelisa added custom directive and removed good first issue Good for newcomers labels Apr 6, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants