Skip to content
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

[UAlert] Add actions slot #1696

Open
hamonCordova opened this issue Apr 19, 2024 · 6 comments · May be fixed by #1785
Open

[UAlert] Add actions slot #1696

hamonCordova opened this issue Apr 19, 2024 · 6 comments · May be fixed by #1785
Labels
enhancement New feature or request

Comments

@hamonCordova
Copy link

Description

Today i used the UAlert with actions, but with incremented actions not just buttons. So i had to use the description slot to achive this. Would be good if we have #actions slot for these cases.

Additional context

No response

@hamonCordova hamonCordova added the enhancement New feature or request label Apr 19, 2024
@noook
Copy link
Collaborator

noook commented Apr 19, 2024

Could you show an example of what you implemented, and an API suggestion, just so we understand the need correctly ?

@hamonCordova
Copy link
Author

hamonCordova commented Apr 19, 2024

Could you show an example of what you implemented, and an API suggestion, just so we understand the need correctly ?

It's really simple feature, just to add a actions slot instead of using the description slot.

Reproduction

Copy link
Collaborator

noook commented Apr 19, 2024

You can already do it with the actions prop

You can check here: https://stackblitz.com/edit/nuxt-ui-z7b766?file=components%2FAlertConfirm.vue

@hamonCordova
Copy link
Author

hamonCordova commented Apr 19, 2024

Ok, but it only accept buttons. In my case (you can check the stackblitz again, and click on "recusar" to see what i'm saying) when a button is clicked another component is shown. Like i said, it's a simple feature, just add a actions slot, so we haven't to duplicate the description.

@moshetanzer
Copy link
Collaborator

@benjamincanac any thoughts on this?

Copy link
Member

I think we can add an actions slot 😊

@moshetanzer moshetanzer linked a pull request May 13, 2024 that will close this issue
8 tasks
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging a pull request may close this issue.

4 participants