-
-
Notifications
You must be signed in to change notification settings - Fork 64
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
Types - Added Better Typings for Width, Height + Size #219
Conversation
🦋 Changeset detectedLatest commit: 01b5462 The changes in this PR will be included in the next version bump. This PR includes changesets to release 1 package
Not sure what this means? Click here to learn what changesets are. Click here if you're a maintainer who wants to add another changeset to this PR |
The latest updates on your projects. Learn more about Vercel for Git ↗︎
|
Nice PR, if this was already included, it would've saved me an hour of troubleshooting... |
Yes i was just troubleshooting this issue |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM, thanks for the PR!
Fixes #213
width
,height
andsize
able to accept astring
value as well as anumber
value (i.e. for usingrem
,px
, etc.)However, this is similar to the inherent attributes associated with an
<svg>
tag:So - an alternate solution may be just removing these attributes from the props entirely, and just relying on the
extends HTMLAttributes<"svg">
instead.