Add Alpine attributes specifically for encapsulate directives #410
believelody
started this conversation in
Ideas
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Hi guys,
Using @kitajs/html a lot, I also use encapsulate directives for alpinejs since I write my logic in a js file. I would like to do same thing you've done in JSX, I mean, knowing alpinejs attributes x-* in jsx file.
As you may know, encapsulate directive is written like this:
The returned object can be typed and it would be great to type "button" properties with most common alpinejs properties. So we don't have to be afraid to mispell some of them.
You can see my poc here on stackblitz.
What do you think ?
Cheers
Beta Was this translation helpful? Give feedback.
All reactions