Garden provides a comprehensive SVG icon library through theDocumentation Index
Fetch the complete documentation index at: https://mintlify.com/zendeskgarden/website/llms.txt
Use this file to discover all available pages before exploring further.
@zendeskgarden/svg-icons package. Icons are available in two sizes and two styles, and are published to npm for use in any JavaScript or React project.
Package
The icon library is published as@zendeskgarden/svg-icons on npm. Source files and contribution guidelines are available on GitHub.
Installation
Sizes
Garden icons come in two sizes:| Size | Use |
|---|---|
| 16px | Default size for the majority of UI contexts |
| 12px | Compact spaces where 16px icons break line height or do not fit |
| 32px | Scaled-up 16px icons; for illustration use only, not interactions |
Styles
Icons come in two styles:- Stroke — the default style. Use stroke icons in all standard UI contexts.
- Fill — use fill icons exclusively to represent selected or active states.
Usage in React
Garden’s SVG icons are plain SVG files. In a React project, you can import them as React components using a bundler plugin (such as@svgr/webpack or Vite’s built-in SVG handling), or use them inline.
Importing an icon as a React component
Importing a 12px icon
Using the Garden React components package
If your project already uses@zendeskgarden/react-components, the <Icon> utility is available to wrap SVG icons with proper sizing and color handling:
Accessibility
Always label interactive icons
When an icon is the only content inside an interactive element (button, link), provide an accessible label usingaria-label on the interactive element. Do not rely on the icon alone to communicate meaning.
aria-hidden="true" on the SVG when an accessible label is present elsewhere, to prevent screen readers from announcing the icon twice.
Use tooltips for icon-only buttons
For interactive icon-only controls in the UI, pair the icon with aTooltip so sighted users who are unfamiliar with the icon’s meaning can discover its purpose on hover.
The Garden icon library does not ship a React wrapper component. Icons are raw SVG assets. Use your project’s preferred SVG import strategy, or pair them with Garden’s React component packages for full theme and accessibility integration.