Skip to content

Getting started

Pick the package for your framework:

Terminal window
npm install @ghs-hazard-pictograms/react
import { Ghs01ExplosivesExplodingBomb, PictogramById } from '@ghs-hazard-pictograms/react';
// Named component
<Ghs01ExplosivesExplodingBomb width={64} />
// Dynamic by ID
<PictogramById id="ghs01-explosives-exploding-bomb" width={64} />

Every pictogram has a slug ID based on its GHS code and name. Browse the Pictogram Gallery to find the sign you need. The ID format is: {code-lowercase}-{name-slugified}, e.g. ghs01-explosives-exploding-bomb.

All packages ship full TypeScript types. The core package exports Pictogram and PictogramCategory if you need them:

import type { Pictogram, PictogramCategory } from '@ghs-hazard-pictograms/core';