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

Typed Styles In Element #21

Open
aminnairi opened this issue Feb 2, 2025 · 0 comments
Open

Typed Styles In Element #21

aminnairi opened this issue Feb 2, 2025 · 0 comments

Comments

@aminnairi
Copy link
Owner

aminnairi commented Feb 2, 2025

Is your feature request related to a problem? Please describe.
Currently, styles are typed as a string in the element (or createElement) function, which does not help at all the developer.

Describe the solution you'd like
Use an object definition when using any element from the @arachnide/html library, and possibly for the future mathml and svg libraries.

Describe alternatives you've considered
Instead of introducing a breaking change, change the signature of the @arachnide/css styles function to be better typed and provide a ton of useful types for known css properties.

Additional context
This would introduce a breaking change, since the @arachnide/css library does respect the type expected from the style property of the @arachnide/html elements.

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

No branches or pull requests

1 participant