Does Elements have a default script library that the current set of components use - it appears that com.realmac.corepack use alpine.js. Is that library generally available for other components to use, or would I need to include my own copy, or whatever lib I want to use?
Ideally, it would be nice if there was one js lib that you could generally count on to be there (much like tailwind for css) if you didn’t want to include your own lib (for various reasons).
Elements doesn’t ship with any JavaScript libraries. We don’t want to tie developers down to a specific set of libraries- and we don’t want to include any JavaScript “by default” in the published site.
We have plans for how developers will be able to specify which JavaScript libraries they need included, and that Elements will manage this across all components, but we haven’t managed to get to that yet!
For now you will have to manually add any JavaScript your components require.