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: Copy button to code block (ExampleWrapper) #446

Merged
merged 1 commit into from
Nov 23, 2022

Conversation

oliverwebr
Copy link
Contributor

I really missed that feature so here we go :)
Closes #372

πŸ“‘ Description

A copy button for code examples.
Screen Shot 2022-11-23 at 20 56 44

βœ… Checks

  • My pull request adheres to the code style of this project
  • All the tests have passed
  • My pull request is based on the latest commit (not the npm version).

β„Ή Additional Information

I first wanted to go with the classic copy icon but did not want to import svelte-heros-v2 just for this one feature. But lmk if there is a desire for style πŸ˜†

@vercel
Copy link

vercel bot commented Nov 23, 2022

The latest updates on your projects. Learn more about Vercel for Git β†—οΈŽ

Name Status Preview Updated
flowbite-svelte βœ… Ready (Inspect) Visit Preview Nov 23, 2022 at 1:05PM (UTC)
flowbite-svelte-update βœ… Ready (Inspect) Visit Preview Nov 23, 2022 at 1:05PM (UTC)

@oliverwebr oliverwebr changed the title WIP: Add: Copy button to code block (ExampleWrapper) Add: Copy button to code block (ExampleWrapper) Nov 23, 2022
@oliverwebr oliverwebr changed the title Add: Copy button to code block (ExampleWrapper) add: Copy button to code block (ExampleWrapper) Nov 23, 2022
@shinokada shinokada merged commit 6e428b9 into themesberg:main Nov 23, 2022
@shinokada
Copy link
Collaborator

Thanks. Merged.
A 1000ms info alert will be nice add-on, too.
"Copied!"

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[Doc] add copy to clipboard button to code blocks
2 participants