Skip to content

Conversation

@Barbapapazes
Copy link
Contributor

πŸ”— Linked issue

❓ Type of change

  • πŸ“– Documentation (updates to the documentation or readme)
  • 🐞 Bug fix (a non-breaking change that fixes an issue)
  • πŸ‘Œ Enhancement (improving an existing functionality)
  • ✨ New feature (a non-breaking change that adds functionality)
  • 🧹 Chore (updates to the build process or auxiliary tools and libraries)
  • ⚠️ Breaking change (fix or feature that would cause existing functionality to change)

πŸ“š Description

Hello πŸ‘‹,

This PR introduces a new slot named header-actions to the Slideover component. This slot allows users to add custom actions, mainly near the close button, without having to completely override the header slot. This is particularly useful for adding additional buttons like "Expand" or "Collapse" to allow the user to control the slideover's size dynamically.

πŸ“ Checklist

  • I have linked an issue or discussion.
  • I have updated the documentation accordingly.

@pkg-pr-new
Copy link

pkg-pr-new bot commented Jun 16, 2025

npm i https://pkg.pr.new/@nuxt/ui@4358

commit: 5c801fa

Copy link
Member

@benjamincanac benjamincanac left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I believe we can just call this actions and maybe do the same in Modal as well? πŸ€”

This would match Alert and Toast components having an actions slot next to the close button.

@Barbapapazes
Copy link
Contributor Author

I believe we can just call this actions and maybe do the same in Modal as well? πŸ€”

This would match Alert and Toast components having an actions slot next to the close button.

Oh I never notice that Alert and Toast already have these slots. Will have a look and align this PR to the current implementation.

Copy link
Member

I think you can simply add an actions slot without implementing the loop on UButton for those, this is specific to Alert and Toast I would say.

@Barbapapazes Barbapapazes changed the title feat(Slideover): add a header-actions slot feat(Modal,Slideover): add slot actions Jun 17, 2025
@Barbapapazes
Copy link
Contributor Author

I think you can simply add an actions slot without implementing the loop on UButton for those, this is specific to Alert and Toast I would say.

Yes, it makes sense. I rename it to just actions and added it to the Modal component.

@benjamincanac benjamincanac changed the title feat(Modal,Slideover): add slot actions feat(Modal/Slideover): add actions slot Jun 24, 2025
@benjamincanac benjamincanac merged commit 8156971 into nuxt:v3 Jun 24, 2025
6 checks passed
@benjamincanac
Copy link
Member

Thanks @Barbapapazes! 😊

@benjamincanac benjamincanac added the v3 #1289 label Aug 27, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

v3 #1289

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants