@nvidia/micro-gui-icons
v1.0.0
Published
NVIDIA Micro GUI Icons: raw SVG assets and TypeScript constants (utility icon set).
Readme
@nvidia/micro-gui-icons
Raw SVG assets and TypeScript constants for NVIDIA Micro GUI Icons: a
24-icon utility set, line and fill variants.
Install
npm install @nvidia/micro-gui-iconsUsage
import { IconNames, isIconName } from "@nvidia/micro-gui-icons";
// SVG files ship at assets/line/<name>.svg and assets/fill/<name>.svgFor React components, see
@nvidia/react-micro-gui-icons.
Line and fill variants
Every icon ships in both line and fill. For glyphs that are pure strokes
with nothing to fill (arrows, chevrons, add, check, close), the two
variants are deliberately identical, so selecting fill renders the same
artwork as line. That affects 19 of the 24 icons in this set.
Both variants exist for every icon regardless, so switching a set between them never leaves a gap, and no call site needs to special-case which glyphs have a distinct fill.
License
Dual-licensed: Apache-2.0 for code and CC-BY-4.0 for the icon assets; see LICENSE. When redistributing the icons, attribute "NVIDIA Micro GUI Icons" with a link to https://github.com/NVIDIA/icons.
Part of the NVIDIA Icons project.
