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

feat: Add Toaster component for displaying toast notifications after … #1

Merged
merged 1 commit into from
Jun 15, 2024

Conversation

narr07
Copy link
Contributor

@narr07 narr07 commented Jun 14, 2024

Add Toast Notification After Copying Code

Description

This pull request introduces a toast notification that appears after the user copies code using the copy button. The toast notification provides feedback to the user, confirming that the code has been successfully copied to the clipboard.

Changes

  • Added a new toast notification component.
  • Integrated the toast notification with the copy button functionality.
  • Updated the relevant Vue components and state management to support the new feature.

How to Test

  1. Navigate to a page with a code block and a copy button.
  2. Click the copy button.
  3. Verify that a toast notification appears, indicating that the code has been copied.
  4. Ensure the toast notification disappears after 3 seconds.

Additional Notes

  • This enhancement improves user experience by providing immediate feedback on the copy action.
  • Ensure to review the toast notification styling and placement for consistency with the overall design.

Copy link

vercel bot commented Jun 14, 2024

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Comments Updated (UTC)
shadcn-docs-nuxt ✅ Ready (Inspect) Visit Preview 💬 Add feedback Jun 14, 2024 7:10pm

@ZTL-UwU
Copy link
Owner

ZTL-UwU commented Jun 15, 2024

Thanks for the contribution ❤️

@ZTL-UwU ZTL-UwU self-requested a review June 15, 2024 05:05
@ZTL-UwU ZTL-UwU merged commit 10a6d31 into ZTL-UwU:main Jun 15, 2024
3 of 4 checks passed
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.

2 participants