-
Notifications
You must be signed in to change notification settings - Fork 1
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 JSDoc documentation for useSonner hook #338
Comments
@coderabbitai please elaborate the initial documentation for the new hook. Include the examples as a markdown inside of the |
Tip For best results, initiate chat on the files or code changes. @AndlerRL I've prepared the documentation for the
# useSonner Hook Documentation
A custom React hook for displaying toast notifications with consistent styling and icons.
## Installation
```bash
pnpm add sonner Basic Usageimport { useSonner } from "@/lib/hooks/useSonner";
function MyComponent() {
const { customSonner } = useSonner();
const handleSuccess = () => {
customSonner({
type: "success",
text: "Operation completed successfully"
});
};
} API Reference
|
@coderabbitai make this documentation shorter. I need to put it at the hook level ( JSDocs) for developers. |
You are on the CodeRabbit Free Plan. In order to use the Chat feature, please upgrade to CodeRabbit Pro. |
Overview
Document the new
useSonner
hook to improve code maintainability and developer experience.Requirements
Add JSDoc documentation for:
useSonner
hookcustomSonnerProps
typecustomSonner
function and its parametersInclude usage examples:
Add component integration examples showing:
Related PR
#334
/cc @AndlerRL
The text was updated successfully, but these errors were encountered: