@gravity-ui/icons
July 10, 2026 · View on GitHub
A pack of Gravity UI icons. Icons have two sources, SVG and React. Have a look at showcase page.
Install
npm install --save-dev @gravity-ui/icons
Usage
React
import Cloud from '@gravity-ui/icons/Cloud';
or
import {Cloud} from '@gravity-ui/icons';
SVG
You might need an appropriate loader for this
import cloudIcon from '@gravity-ui/icons/svgs/cloud.svg';
License
Distributed under the MIT License. See LICENSE for details.
For AI agents
The official SVG icon set for Gravity UI, shipped as both React components and raw .svg files for use with @gravity-ui/uikit's Icon renderer.
When to use
- You need an icon inside a Gravity UI app and want a consistent, ready-made set.
- Rendering an icon via uikit: import the icon component here and pass it to uikit's
Iconthrough itsdataprop. - You need the raw
.svgasset (e.g. for CSSbackground-imageor a build-time SVG loader) rather than a React component.
When not to use
- Rendering the icon on screen — this package only provides the glyphs; the actual renderer (sizing, color, a11y) is the
Iconcomponent from@gravity-ui/uikit. - You need a custom or brand icon that is not in the set — import your own SVG and pass it to uikit's
Icon; do not expect it to live here.
Common pitfalls
- Icons are passed as data, not by name. Do
import {Gear} from '@gravity-ui/icons'; <Icon data={Gear} />— there is no<Icon name="gear" />API, and this package exports no<Icon>component of its own. - Import path matters for tree-shaking.
import Cloud from '@gravity-ui/icons/Cloud'pulls a single icon;import {Cloud} from '@gravity-ui/icons'works too but relies on the bundler to tree-shake the barrel. - SVG imports need a loader.
import icon from '@gravity-ui/icons/svgs/cloud.svg'only works if your bundler is configured to handle.svgfiles. - Size and color come from the renderer. Set
sizeon uikit'sIconand control color withcolor/CSScurrentColor; the SVGs themselves carry no fixed color.