Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

data- atrributes for actions and targets #13

Open
lubomirblazekcz opened this issue Oct 25, 2023 · 1 comment
Open

data- atrributes for actions and targets #13

lubomirblazekcz opened this issue Oct 25, 2023 · 1 comment

Comments

@lubomirblazekcz
Copy link

Hello @jaredcwhite, first of I really love the idea behind Crystallized, I've been looking for a Stimulus alternative that would leverage native web components api and this is exactly what I had in mind! No abstractions, just simple and rich functionality that any web needs.

The only thing I dislike a little, is missing prefixes for attributes or the lack of customization for that. I personally prefer data- attributes and think it might a better aproach, and dataset property can be also leveraged this way on elements. Also I think it's more close to standards, as using custom attributes is discouraged, or at least they should be prefixed in some way.

Would you consider adding an option for prefix, similiar to https://stimulus.hotwired.dev/handbook/installing#overriding-attribute-defaults?

@jaredcwhite
Copy link
Member

Hi @lubomirblazekcz, thanks for the feedback! The TL;DR is I've largely moved on to another project I'm hoping to release soon which takes some of these ideas but packages them up in more of a complete fullstack Web Component solution (essentially a competitor to Lit). But if you'd be willing to submit a PR (I could offer a few pointers), I'm happy to merge that in.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants