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

web-twig: Enable global attributes #17

Open
literat opened this issue Apr 22, 2024 · 0 comments
Open

web-twig: Enable global attributes #17

literat opened this issue Apr 22, 2024 · 0 comments

Comments

@literat
Copy link
Contributor

literat commented Apr 22, 2024

WHEN (situation): I use web-twig components,
WHAT: I want each component to be able to specify global attributes,
WHY: because that's just how it works in HTML.

Acceptance criteria
each component can be given global attributes
Implementation notes (optional)
https://developer.mozilla.org/en-US/docs/Web/HTML/Global_attributes
this will require refactoring mainProps and inputProps to some unified function that will handle these transfer attributes
define the global attributes as an array similar to allowedProp, which will be allowed to specify
the exceptions being class and style and maybe some others, we need to find out

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

1 participant