Skip to content

docs: update source code for use-toast and toaster components #7475

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

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

rbadillap
Copy link

@rbadillap rbadillap commented May 27, 2025

This PR fixes #7443 and fixes #7450

In summary, the issue is that the toast documentation shows the same code in both use-toast.ts, toaster.tsx and toast.tsx.

My approach was simply following the convention established for the internal <ComponentSource /> component.

@shadcn

shadcn-toaster.mp4

Copy link

vercel bot commented May 27, 2025

@rbadillap is attempting to deploy a commit to the shadcn-pro Team on Vercel.

A member of the Team first needs to authorize it.

@rbadillap rbadillap marked this pull request as ready for review May 27, 2025 16:01
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.

[bug]: The code snippets for toaster are wrong in the docs [bug]: The code for toaster.tsx && use-toast.tsx are not updated
1 participant