How to change the loading icon size in Nuxt UI button?
It seems to be hardcoded to "size-5"
4 Replies
Hi @hiimmox. I'm kapa.ai, your friendly support bot. I will try to answer your question by searching through the knowledge base. :wave:
----------------------
Based on the available knowledge sources, there is no explicit documentation or prop for directly changing the loading icon size in the Nuxt UI Button component. The documentation shows how to customize the loading icon itself using the loading-icon prop, but it does not mention a way to adjust its size via a prop or slot. The icon size appears to be set by internal classes, and there is no mention of a dedicated API for overriding this size in the Button component documentation or theming examples Button Loading Icon.
If you need to change the icon size, you may need to use custom CSS targeting the loading icon, but this approach is not covered in the official documentation. If you require a supported solution, consider submitting a feature request or checking for updates in the official Nuxt UI documentation.
----------------------
Note: you can ask me a follow up question by @ mentioning me again :speech_balloon:
----------------------
<@327193365797928963> Kapa.ai is still learning and improving, please let me know how I did by reacting below.
maybe try the 'leading' slot
default size is medium, you can edit it in the theme here
Yes!
Turns out I had to modify inside the size: https://discord.com/channels/473401852243869706/897487139888062506/1368963501837779024
Thanks