shivansh-bhatnagar18 / multiplayer-uno

https://multiplayer-uno.vercel.app
20 stars 43 forks source link

Designed a Toast Component #70

Closed ritwik-69 closed 1 month ago

ritwik-69 commented 1 month ago

This commit creates the toast component with customizable position,duration and color.

fixes:#68

Description

Created the toast component with customizable position,duration and color.To use you need use the custom hook useToast() and then toast.open(message,duration,position,color) to get the toast at that desired position.

Motivation and Context

[Explain the motivation behind these changes and provide any relevant context.]

How to Test

[Describe the steps to test the changes made in this pull request.]

Related Issues

[If applicable, mention any related issues or pull requests.]

Checklist

Screenshots (if applicable)

[If your changes include any visual updates, provide screenshots here.]

toast img

https://github.com/shivansh-bhatnagar18/multiplayer-uno/assets/72665321/bee1228f-d607-4b68-b6ee-cc3fafcac1ba

vercel[bot] commented 1 month ago

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

Name Status Preview Comments Updated (UTC)
multiplayer-uno ✅ Ready (Inspect) Visit Preview 💬 Add feedback Jun 7, 2024 6:56am
kuv2707 commented 1 month ago

@ritwik-69 This can be merged once the minor changes suggested are applied.

ritwik-69 commented 1 month ago

closing animation

https://github.com/shivansh-bhatnagar18/multiplayer-uno/assets/72665321/25bb355d-a540-4529-b124-77a25a450653

kuv2707 commented 1 month ago

There are a few polishing issues with the implementation, but I'll fix them myself. Merging, thanks for all the work @ritwik-69 .