nextui-org / nextui

🚀 Beautiful, fast and modern React UI library.
https://nextui.org
MIT License
21.17k stars 1.34k forks source link

[Feature Request] We really need a Alert component. #2250

Open nayanrabiul opened 7 months ago

nayanrabiul commented 7 months ago

Is your feature request related to a problem? Please describe.

i want to notify the user about their action but i culdnt find any alert component for that . what i mean by alert you can see below picturecould

Describe the solution you'd like

I was surprised to see no alert component. How did they miss that, especially considering it is a pretty good React UI library?

I would like to suggest the alert component. Similar to toast, however, it can be used to share larger chunks of information in page, can also be used as an alternative to toasts. It displays by default and does not leave until the user removes (if needed) e.g info alert, warning alert, success alert, etc like a good idea to have an alert that stays on the page reminding users what to do.

Describe alternatives you've considered

I have considered using the modals as an alternative solution to a page alert but it doesn't quite seem to do the trick because modals need to be triggered. If triggered by default, users can close this without actually reading the message. It seems like a good idea to have an alert that stays on the page reminding users what to do.

Screenshots or Videos

image

DannyKuk commented 7 months ago

Agree, some Alerts, basically toast in general would be needed badly. Would be also amazing if it would be some kind of parameter "isAutoClose" or similar to trigger the auto close or the users need to close it.

khylpe commented 6 months ago

Absolutely agree with your feature request. The absence of an alert component is indeed surprising.

vitalijalbu commented 5 months ago

Waaannttt ittttt

jonathanrich1986 commented 2 months ago

Yes please!

DemonKHH commented 1 month ago

agree more,that's why i cant use nextui, please add it

abhinav700 commented 5 days ago

@wingkwong Can you assign this issue to me?

alvinBM commented 4 days ago

We're really excited about the possibility of having an alert component! It would be a fantastic addition, and we can't wait to see it implemented.

abhinav700 commented 4 days ago

We're really excited about the possibility of having an alert component!

Me too! Will begin working on it As soon as I get the assignment from @wingkwong

wingkwong commented 4 days ago

We're really excited about the possibility of having an alert component!

Me too!

Will begin working on it As soon as I get the assignment from @wingkwong

Hey. Please ping me at Discord for the discussion. We will work on the design first and relay to u once it s done.

abhinav700 commented 4 days ago

@wingkwong Should I Dm You or tag you in a channel?

wingkwong commented 4 days ago

DM me pls thanks

vitalijalbu commented 4 days ago

Guys, go with shadcn or radix themes.

abhinav700 commented 4 days ago

DM me pls thanks

Okay