npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2026 – Pkg Stats / Ryan Hefner

@hpe-design/icons-grommet

v1.2.0

Published

HPE Icons for use with Grommet and the HPE Design System.

Readme

HPE Icons - Grommet Integration

HPE Icons optimized for React applications with Grommet integration. This package provides professionally designed SVG icons as React components with built-in Grommet theming support.

Features

  • 450+ Icons: Comprehensive collection of business, technology, and interface icons
  • Grommet Integration: Pre-styled React components with Grommet theming support
  • TypeScript Support: Full TypeScript definitions included
  • Tree Shakeable: Import only the icons you need
  • Accessible: Built with accessibility best practices
  • Customizable: Full control over size, color, and styling

Installation

npm install @hpe-design/icons-grommet
# or
yarn add @hpe-design/icons-grommet
# or
pnpm install @hpe-design/icons-grommet

Usage

Grommet Integration

The easiest way to use HPE icons is with the Grommet integration, which provides pre-styled React components with built-in theming support:

import { Grommet } from 'grommet';
import { hpe } from 'grommet-theme-hpe';
import { Accessibility, Cloud, User, StatusWarning } from '@hpe-design/icons-grommet';

function App() {
  return (
    <Grommet theme={hpe} themeMode="auto">
      <Accessibility />
      <Cloud size="xxlarge" />
      <StatusWarning color="status-warning" />
      <User size="small" color="text-onDark" />
    </Grommet>
  );
}

Optimized Imports

Modern bundlers (Webpack 5+, Vite, Rollup, esbuild) will automatically tree-shake unused icons when importing from the main package. However, importing icons from their full path will further ensure minimization.

import { UserAdmin } from '@hpe-design/icons-grommet/icons/UserAdmin';

Available Props

All Grommet icon components support the following props:

  • size: 'xsmall' | 'small' | 'medium' | 'large' | 'xlarge' | 'xxlarge' or custom size string
  • color: Any color from your theme or CSS color value
  • a11yTitle: Accessibility label for screen readers

Theming

Icons respect Grommet's theming system. All icons respect semantic icon colors provided by hpe-design-tokens and/or grommet-theme-hpe.

Create Your Own Icon

Any 24x24px SVG may be converted to an icon using the <Blank> icon. For example:

If an icon is decorative and does not need to be read out by assistive technologies, use <Blank /> with default properties. If the icon should be read out by assistive technologies, apply aria-hidden={undefined} and an appropriate a11yTitle to <Blank />. aria-hidden={undefined} allows screenreaders to pick up on the icon within the dom and an aria-label or a11yTitle tells screenreaders how the icon should be announced.

import React from 'react';
import { Blank } from 'grommet-icons';

export const MyIcon = (props) => (
  <Blank {...props}>
    {/* your 24x24 svg goes here - e.g. here's a 24x24px circle */}
    <svg
      viewBox="0 0 24 24"
      xmlns="http://www.w3.org/2000/svg"
    >
      <circle cx="12" cy="12" r="5" />
    </svg>
  </Blank>
);

export const MyOtherIcon = (props) => (
  <Blank a11yTitle="Descriptive icon name" aria-hidden={undefined} {...props}>
    {/* your 24x24 svg goes here - e.g. here's a 24x24px circle */}
    <svg
      viewBox="0 0 24 24"
      xmlns="http://www.w3.org/2000/svg"
    >
      <circle cx="12" cy="12" r="5" />
    </svg>
  </Blank>
);

Available Icons

Categories

The library includes icons across multiple categories:

  • Interface: Navigation, actions, controls
  • Technology: Cloud, servers, networking, security
  • Business: Analytics, documents, communication
  • Users: People, roles, permissions
  • Media: Audio, video, images
  • Status: Success, warning, error indicators
  • And many more...

Complete Icon List

For a complete list of all 450+ available icons, explore the Storybook documentation, check the src/js/icons/ directory, or view them in Figma.

Development

Running Storybook

To explore all available icons and their usage:

pnpm storybook

Building

pnpm build

Scripts

  • pnpm build - Build the library for production (uses Vite)
  • pnpm copy-types - Copy TypeScript definitions to dist
  • pnpm lint - Run ESLint
  • pnpm storybook - Start Storybook for icon exploration
  • pnpm build-storybook - Build Storybook for deployment

Package Structure

packages/icons-grommet/
├── dist/                    # Built library files
│   ├── hpe-icons.js        # Main entry point (ES modules)
│   ├── hpe-icons.cjs       # CommonJS build
│   └── hpe-icons.d.ts      # TypeScript definitions
├── src/js/                 # Source files
│   ├── index.ts            # Main entry point
│   ├── StyledIcon.jsx      # Base styled component
│   ├── icons/              # Icon React components (450+ icons)
│   ├── themes/             # Default themes
│   └── utils.ts            # Utility functions
├── .storybook/             # Storybook configuration
├── package.json            # Package configuration
├── vite.config.ts          # Vite build configuration
└── tsconfig.json           # TypeScript configuration

Migrating from grommet-icons

Information for migrating from grommet-icons to @hpe-design/icons-grommet can be found in this migration guide.

Browser Support

  • Chrome (latest)
  • Firefox (latest)
  • Safari (latest)
  • Edge (latest)

Contributing

This package is part of the HPE Design System. Please refer to the main repository for contribution guidelines.

License

Apache-2.0 License. See LICENSE file for details.

Related