svelteuidev / svelteui

SvelteUI Monorepo
https://svelteui.dev
MIT License
1.29k stars 63 forks source link

[@svelteui/core]: actionicon add onclick event #495

Closed uvulpos closed 3 months ago

uvulpos commented 3 months ago

Description

I want to be able to make an action, when an action button is clicked. I could wrap a div around, but I think thats a very silly workaround and a responsibility of the component. Therefore I also had to adapt the Box Component to bubble up the onclick event

Before submitting the PR, please make sure you do the following

uvulpos commented 3 months ago

I'm a backend dev and have no turbo installed on my maschine and it didn't work installing the dependencies and also not after installing turbo globally, so it's currently untestet. Please test it yourself and let me know 🙂

uvulpos commented 3 months ago

after retesting, it worked. already wondered why it didn't work. But seems like I did some sort of error