Skip to content

Astro

Devicons for Astro — the SVG is inlined at build time, so pages ship zero client JS.

Terminal window
pnpm add @devicons-pack/astro
---
import {Icon} from '@devicons-pack/astro';
---
<Icon name="javascript" />
<Icon name="javascript" variant="plain" width="32" />
<Icon name="typescript" title="Types!" />
  • name — typed icon slug (578 available)
  • variantoriginal (default) · plain · line · original-wordmark · plain-wordmark · line-wordmark
  • title — accessible label; omitted → aria-hidden
  • any other attribute is passed to the root <svg>

Need the raw string (endpoints, MDX helpers)? loadIconSvg(name, variant, attrs).