Astro Icon is an integration built on top the Astro web framework. You can configure your project inside the astro.config.mjs
configuration file:
You can pass the following options to the icon
integration.
include
type: Record<string, string[]>
Filter the specific icons to include from @iconify-json/*
sets in the final server bundle.
iconDir
To use a local icon directory other than the default src/icons/
, set the iconDir
option.
svgoOptions
Control the behavior of local .svg
optimization by customizing the svgo
options.
Refer to the official svgo
configuration options for more information.