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

Types - Added Better Typings for Width, Height + Size #219

Open
wants to merge 3 commits into
base: main
Choose a base branch
from

Conversation

Harry-Ross
Copy link

Fixes #213

  • Made width, height and size able to accept a string value as well as a number value (i.e. for using rem, px, etc.)

However, this is similar to the inherent attributes associated with an <svg> tag:
image

So - an alternate solution may be just removing these attributes from the props entirely, and just relying on the extends HTMLAttributes<"svg"> instead.

Copy link

changeset-bot bot commented Apr 14, 2024

🦋 Changeset detected

Latest commit: 01b5462

The changes in this PR will be included in the next version bump.

This PR includes changesets to release 1 package
Name Type
astro-icon Patch

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

Copy link

vercel bot commented Apr 14, 2024

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Comments Updated (UTC)
api-astroicon ✅ Ready (Inspect) Visit Preview 💬 Add feedback Apr 14, 2024 10:15am
astroicon ✅ Ready (Inspect) Visit Preview 💬 Add feedback Apr 14, 2024 10:15am

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

Successfully merging this pull request may close these issues.

Icon props: Accept size?: string to pass size units
1 participant