thedevdojo / pines

The Pines UI library
https://devdojo.com/pines
MIT License
2.75k stars 106 forks source link

Toasts don't seem to work outside of docs page #35

Closed ikelkar closed 2 months ago

ikelkar commented 3 months ago

While the toast seems to work nicely on this page: https://devdojo.com/pines/docs/toast, the playground doesn't seem to work nor does copying the component code

aligjahed commented 3 months ago

same.

pixelastronauts commented 3 months ago

Make sure you have a x-data surrounding both the toast component & the buttons. This is indeed missing in the example code, so copying that code doesn't work out of the box.

<div class="relative w-auto h-auto" x-data>
    // Implementation of all buttons & toasts
</div>