ui
ui copied to clipboard
[bug]: Incorrect Hook Import Path in Toast Component Example
Describe the bug
The ShadCN documentation contains an error in the Toast component example, where the import path for the useToast hook is incorrect. The example shows the hook being imported from the components folder, but according to the component.json file, the hooks are stored in the hooks folder inside the main directory.
I will be submitting a PR to address this issue by updating the import path in the example.
Affected component/components
Toast component
How to reproduce
- Go to the ShadCN documentation for the Toast component.
- Review the import path for the useToast hook.
- Notice that the example suggests the hook is in the components folder, but it's actually in the hooks folder.
Codesandbox/StackBlitz link
No response
Logs
No response
System Info
Not applicable for this issue, as it concerns a documentation error.
Before submitting
- [X] I've made research efforts and searched the documentation
- [X] I've searched for existing issues