Other frameworks
No dedicated package for your stack? One of the framework-agnostic routes below covers it — pick by how your framework consumes UI.
Web components (Stencil, FAST, Ember, Aurelia, Marko, …)
Section titled “Web components (Stencil, FAST, Ember, Aurelia, Marko, …)”Anything that renders standard custom elements works with
@aws-icons/web-components — register your icons, define the
element once, and use it in any template language:
<aws-icon name="amazon-ec2" variant="architecture-service"></aws-icon>Server-driven HTML (htmx, Unpoly, Turbo, Datastar)
Section titled “Server-driven HTML (htmx, Unpoly, Turbo, Datastar)”The @aws-icons/htmx handler is not htmx-specific — it serves plain
SVG fragments over HTTP, which all fragment-swapping libraries consume:
<!-- htmx --> <span hx-get="/aws-icons/architecture-service/amazon-ec2" hx-trigger="load"></span><!-- Unpoly --> <a up-target=".icon" href="/aws-icons/architecture-service/amazon-ec2">load</a><!-- Datastar --> <span data-on-load="@get('/aws-icons/architecture-service/amazon-ec2')"></span>Anything Iconify supports (and that is almost everything)
Section titled “Anything Iconify supports (and that is almost everything)”@aws-icons/iconify plugs the icons into unplugin-icons, the
Tailwind Iconify plugin, Iconify’s web component, and every framework Iconify
integrates with.
React-compatible libraries (Inferno, …)
Section titled “React-compatible libraries (Inferno, …)”@aws-icons/react works unchanged through compatibility layers such
as inferno-compat.
Legacy stacks (Backbone, Knockout, jQuery, plain HTML)
Section titled “Legacy stacks (Backbone, Knockout, jQuery, plain HTML)”Use the sprite sheets or hotlink the CDN:
<svg width="32" height="32"><use href="/sprites/architecture-service.svg#amazon-ec2" /></svg>