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

@leapdev/gui-icons

v3.0.114

Published

LEAP GUI Icons

Readme

LEAP GUI Icons

Quick Start

  1. Install Node.js & NPM
  2. Install Project Dependencies npm install
  3. Run npm link in Terminal to symlink the project folder. For more Info, visit npm-link
  4. Run npm run build in Terminal to build GUI
  5. Run npm run start in Terminal to run GUI

Installing

npm install @leapdev/gui-icons

Usage

After installing the package, you can include the icons in your application.

SVG sprites

Here's an example of how to use a single icon from our SVG sprites in a web application:

<!DOCTYPE html>
<html lang="en">
  <head>
    <meta charset="UTF-8" />
    <meta name="viewport" content="width=device-width, initial-scale=1.0" />
    <title>LEAP GUI Icons Example</title>
  </head>
  <body>

    <!-- First, include the sprite file -->
    <div style="display: none">
      <object
        id="sprite"
        type="image/svg+xml"
        data="node_modules/@leapdev/gui-icons/dist/icons/sprite-desktop.svg"
      ></object>
    </div>

    <!-- Then, use the icon -->
    <svg width="16" height="16">
      <use xlink:href="#desktop-Pin"></use>
    </svg>

  </body>
</html>

This example demonstrates how to use the 'desktop-Pin' icon from the desktop sprite. Here's what's happening:

  1. We include the sprite file using an <object> tag. This loads the SVG sprite into the document.
  2. We create an <svg> element and use the <use> tag to reference the specific icon from the sprite.
  3. The xlink:href attribute points to the id of the icon in the sprite (#desktop-Pin).

To use a different icon, simply change the id in the xlink:href attribute. For example, to use a 'Preview' icon, you might use #desktop-Preview.

Remember to adjust the sprite file path according to your project structure. You may also need to change sprite-desktop.svg to the appropriate sprite file for the icon category you're using.

To use different icon sizes, you can adjust the width and height attributes of the <svg> element:

<svg width="24" height="24">
    <use xlink:href="#desktop-Pin"></use>
</svg>

Make sure to import the necessary sprite files in your application before using the icons: This is handled automatically by including the <object> tag in the example above. The <object> tag will load the sprite file asynchronously. The Javascript ensures that the icon is only used after the sprite has loaded.

Run the SVG sprites example on Stackblitz

Here is how you can run the example above on Stackblitz (https://stackblitz.com):

<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>LEAP GUI Icons Example</title>
</head>
<body>
    <div id="icon-container"></div>

    <script type="module">
        async function loadIcon() {
            // Fetch the SVG sprite file
            const response = await fetch('https://unpkg.com/@leapdev/[email protected]/dist/icons/sprite-desktop.svg');
            const svgText = await response.text();

            // Add the SVG sprite to the document
            const div = document.createElement('div');
            div.style.display = 'none';
            div.innerHTML = svgText;
            document.body.appendChild(div);

            // Create and add the icon
            const svg = document.createElementNS('http://www.w3.org/2000/svg', 'svg');
            svg.setAttribute('width', '16');
            svg.setAttribute('height', '16');

            const use = document.createElementNS('http://www.w3.org/2000/svg', 'use');
            use.setAttributeNS('http://www.w3.org/1999/xlink', 'xlink:href', '#desktop-Pin');
            svg.appendChild(use);

            document.getElementById('icon-container').appendChild(svg);
        }

        loadIcon();
    </script>
</body>
</html>

As individual SVGs - React Example

Here's an example of how to use individual SVG icons in a React application:

import React from 'react';
import { FilledHistory, DesktopPin, DoctypeAudio } from '@leapdev/gui-icons';

export default function IconExample() {
  return (
    <div>
      <h1>LEAP GUI Icons Example</h1>
      <div style={{ display: 'flex', gap: '20px', alignItems: 'center' }}>
        <FilledHistory />
        <DesktopPin width={24} height={24} />
        <DoctypeAudio width={32} height={32} />
    </div>
  );
}

In this example:

  1. Import the icons from the @leapdev/gui-icons package.
  2. Use the icons as React components in your JSX.
  3. Adjust the size of icons using the width and height props.

Package updates

Refer to the CHANGELOG.md for a detailed update on the icons covered by this package

Releasing

See RELEASING.md for how to publish a new version.