Description
phosphor-astro provides Phosphor icons as Astro components. Phosphor is an icon family, and this package brings it to projects built with Astro, the web framework. You add phosphor-astro to your project with a package manager, then import the icons you need and place them in your code. Each exported component is the raw SVG element from Phosphor, with the Astro props object spread onto the root element. That design lets you customize the output as you see fit. Any prop you pass to a component is added to the top-level svg element. The README covers installation, usage and the component pattern in short sections, with a code example for each. The package is released under the MIT license, and its source is on GitHub under the SeanMcP account. It is aimed at Astro developers who want Phosphor icons in their sites or apps without writing the SVG markup themselves.…
Highlights
- Phosphor icons as Astro components
- Raw SVG output with Astro props
- Pass any prop to the svg element
- Installs with a package manager
- MIT license
Ratings & Reviews
No ratings yet
Be the first to rate phosphor-astro.
People also visit

@ai-matrx/icons
The AI Matrx icon resolver: turn any icon NAME into a rendered component
phosphor-astro FAQ
What is phosphor-astro?
Phosphor icons packaged as Astro components.
How do I install it?
Add phosphor-astro to your project with your package manager, as the README shows.
How do I customize an icon?
Any prop you pass to a component is added to the top-level svg element.
Are the components plain SVG?
Yes. The README says they are the raw svg elements from Phosphor, with Astro props added to the root element.
What license is it under?
MIT, according to the README.
What are the best phosphor-astro alternatives?
Popular alternatives to phosphor-astro include astro-icon, astro-iconset and @phosphor-icons/vue. See all phosphor-astro alternatives











