We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
size?: string
astro-icon
v1.1.0
Astro v4.4.11 Node v18.16.1 System macOS (x64) Package Manager unknown Output static Adapter none Integrations astro-icon @astrojs/starlight @astrojs/tailwind
No response
Type error when passing size as string specifying units.
size
<> {icon && <Icon name={emojiName} size="1.999em" />} </> {/* error ts(2322): Type 'string' is not assignable to type 'number'. */}
Expected: make size?: string to be able to specify units aka rem, em, px, etc. similar to real SVG width/height attributes
rem, em, px, etc.
https://stackblitz.com/edit/github-ekzvvi?file=astro.config.mjs,src%2Fpages%2Findex.astro
The text was updated successfully, but these errors were encountered:
Successfully merging a pull request may close this issue.
What version of
astro-icon
are you using?v1.1.0
Astro Info
If this issue only occurs in one browser, which browser is a problem?
No response
Describe the Bug
Type error when passing
size
as string specifying units.What's the expected result?
Expected: make
size?: string
to be able to specify units akarem, em, px, etc.
similar to real SVG width/height attributes
Link to Minimal Reproducible Example
https://stackblitz.com/edit/github-ekzvvi?file=astro.config.mjs,src%2Fpages%2Findex.astro
The text was updated successfully, but these errors were encountered: