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

uni-chip

v1.0.3

Published

<uni-chip /> is an encapsulated Web Component built upon the foundation of the uniopen design language. Implementation is straightforward: simply slot a standard checkbox or radio <input> element inside <uni-chip />. The component automatically transforms

Readme

uni-chip

Published on webcomponents.org DeepScan grade

<uni-chip /> is an encapsulated Web Component built upon the foundation of the uniopen design language.

Implementation is straightforward: simply slot a standard checkbox or radio <input> element inside <uni-chip />. The component automatically transforms the input's visual presentation and interactive behaviors to seamlessly align with uniopen design specifications, allowing effortless adaptation via native HTML attributes and JavaScript properties.

<uni-chip />

Basic Usage

<uni-chip /> is a web component. All we need to do is put the required script into your HTML document. Then follow <uni-chip />'s html structure and everything will be all set.

  • Required Script

    <script
      type="module"
      src="https://unpkg.com/uni-chip/mjs/wc-uni-chip.js">        
    </script>
  • Structure

    Put <uni-chip /> into HTML document. It will have different functions and looks with attribute mutation.

    <uni-chip>
      <input
        slot="chip"
        data-content="content"
        type="checkbox"
        value="my-value"
      />
    </uni-chip>

<uni-chip /> dynamically adjusts its user interface and core functionality by strictly adhering to the attributes of the encapsulated input element. Developers can leverage these capabilities and observe the corresponding behavioral shifts by modifying standard attributes—such as disabled—directly on the input element.

<uni-chip>
  <input
    slot="chip"
    data-content="content"
    type="checkbox"
    value="my-value"
    disabled
  />
</uni-chip>

JavaScript Instantiation

<uni-chip /> could also use JavaScript to create DOM element. Here comes some examples.

<script type="module">
import { UniChip } from 'https://unpkg.com/uni-chip/mjs/wc-uni-chip.js';

const checkboxTemplate = document.querySelector('.my-checkbox-template');

// use DOM api
const nodeA = document.createElement('uni-chip');
nodeA.appendChild(checkboxTemplate.content.cloneNode(true));
document.body.appendChild(nodeA);

// new instance with Class
const nodeB = new UniChip();
nodeB.appendChild(checkboxTemplate.content.cloneNode(true));
document.body.appendChild(nodeB);
</script>

Attributes

<uni-chip /> component exposes a curated set of attributes, enabling developers to dynamically adjust the user interface. This provides the flexibility to tailor the component’s appearance to seamlessly adapt to any given context.

  • size

    The size attribute configures the overall dimensions of <uni-chip />. The component currently supports two standard options: large and medium, defaulting to medium.

    <uni-chip>
      <input
        slot="chip"
        data-content="content"
        type="checkbox"
        value="my-value"
        size="medium"
      />
    </uni-chip>
  • theme

    Configures the visual theme of the <uni-chip /> to accommodate different styling requirements. It currently supports main and subtle. The default value is main.

    <uni-chip>
      <input
        slot="chip"
        data-content="content"
        type="checkbox"
        value="my-value"
        theme="main"
      />
    </uni-chip>

Properties

| Property Name | Type | Description | | ----------- | ----------- | ----------- | | size | String | Getter / Setter size. size configures the overall dimensions of <uni-chip />. The component currently supports two standard options: large and medium, defaulting to medium. | | theme | String | Getter / Setter theme. theme configures the visual theme of the <uni-chip /> to accommodate different styling requirements. It currently supports main and subtle options. The default value is main. |

Reference