saadeghi / daisyui

๐ŸŒผ ๐ŸŒผ ๐ŸŒผ ๐ŸŒผ ๐ŸŒผ โ€ƒThe most popular, free and open-source Tailwind CSS component library
https://daisyui.com
MIT License
34.24k stars 1.31k forks source link

docs: toast #2921

Closed ZhangPeibin closed 8 months ago

ZhangPeibin commented 8 months ago

On which page do you see this issue?

https://daisyui.com/components/toast/

Describe the issue

Toast messages are usually used to display temporary notifications on the application interface. They will automatically disappear after a period of time.

Based on the above, I think the page should list Toast as a component, and then give different styles in the demo to display different toasts.

What browsers are you seeing the problem on?

No response

github-actions[bot] commented 8 months ago

Thank you @ZhangPeibin for reporting issues. It helps daisyUI a lot ๐Ÿ’š
I'll be working on issues one by one. I will help with this one as soon as a I find a solution.
In the meantime providing more details and reproduction links would be helpful.

twf-nikhila commented 8 months ago

agree to this

saadeghi commented 8 months ago

Thanks for the suggestion but issue section is for reporting bugs.

Toast messages are usually used to display temporary notifications on the application interface. They will automatically disappear after a period of time.

This description is different from what daisyUI provides for toast class name.

Toast is a wrapper to stack elements, positioned on the corner of page.

even though you can achieve the described behavior using JS (to hide the element after a period of time)