praveenjuge / kutty

Kutty is a tailwind plugin for building web applications. It has a set of accessible and reusable components that are commonly used in web applications.
https://kutty.netlify.app
MIT License
833 stars 44 forks source link

Calling show on dialog from external component #3

Closed weppami closed 4 years ago

weppami commented 4 years ago

Hi, can you help with this :

I would like to call the dialog component from a livewire component that can pass value to alpine (i assume you're using it in your components), what is the value of x-data and x-show to use to trigger dialogs ?

Thanks and keep up the good work !!

praveenjuge commented 4 years ago

The current dialog component is written in vanilla js, but I am in the process of moving it to alpine.

I'll let you know when it's done.

praveenjuge commented 4 years ago

Finally moved all the components to alpine,

The dialog has x-data="dialog()" and x-show is done with open: false

Check out the examples in the documentation for more info: https://kutty.netlify.app/docs/dialog/