ui icon indicating copy to clipboard operation
ui copied to clipboard

[UAlert] Add actions slot

Open hamonCordova opened this issue 1 year ago • 6 comments

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 avatar Apr 19 '24 14:04 hamonCordova

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

noook avatar Apr 19 '24 15:04 noook

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

hamonCordova avatar Apr 19 '24 16:04 hamonCordova

You can already do it with the actions prop

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

noook avatar Apr 19 '24 20:04 noook

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.

hamonCordova avatar Apr 19 '24 20:04 hamonCordova

@benjamincanac any thoughts on this?

moshetanzer avatar Apr 21 '24 13:04 moshetanzer

I think we can add an actions slot 😊

benjamincanac avatar May 13 '24 16:05 benjamincanac