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

xtal-material

v0.0.68

Published

Dependency Free Material Components

Downloads

429

Readme

Published on webcomponents.org

Lightweight material design V1 web components, based on Jon Uhlmann's pure CSS material design form elements. For tabs we build on Ben Mildren's Material Design CSS Only Tabs.

NB: There are a number of far more robust alternative material design web components you should definitely check out.

The text input also supports autocomplete / combobox functionality. It has a property, options, which expects the following interface:

export interface IXtalInputOptions {
    data: any[],
    textFld: string,
    keyFld: string,
}

It utilizes the datalist.

The Duality Principle

It seems as though we must use sometimes JavaScript and sometimes declarative markup, while at times we may use either. We are faced with a new kind of difficulty. We have two contradictory pictures of reality; separately neither of them fully explains the phenomena of good web design, but together they do. -- Albert Einstein

If you look at the codepen examples these components derive from, one observes they do not contain any JavaScript. Unfortunately, lack of support for importing HTML kind of forces these components to adopt a slower, more complex, and less risk-free format -- JavaScript. But xtal-material is well-positioned to adopt HTML format when HTML modules land.

    <script defer src="https://cdn.jsdelivr.net/npm/[email protected]/dist/es-module-shims.js"></script>
    <script type="importmap-shim">
      {
        "imports": {
          "trans-render/": "https://cdn.jsdelivr.net/npm/[email protected]/",
          "xtal-element/": "https://cdn.jsdelivr.net/npm/[email protected]/",
          "xtal-material/":  "https://cdn.jsdelivr.net/npm/[email protected]/",
          "event-switch/":  "https://cdn.jsdelivr.net/npm/[email protected]/"            
        }
      }
      </script>
      
    <script  type="module-shim">
      import 'xtal-material/xtal-text-input-md.js';
      import 'xtal-material/xtal-email-input-md.js';
      import 'xtal-material/xtal-checkbox-input-md.js';
      import 'xtal-material/xtal-radio-group-md.js';
      import 'xtal-material/xtal-text-area-md.js';
      import 'xtal-material/xtal-radio-tabs-md.js';
      import 'xtal-material/xtal-side-nav.js';
    </script>
    <script type="module" src="https://unpkg.com/[email protected]/carbon-copy.js"></script>
    <script type="module" src="https://unpkg.com/[email protected]/dist/p-d.p-u.iife.js"></script>
    <script type="module" src="https://cdn.jsdelivr.net/npm/[email protected]/dist/xtal-decorator.iife.js"></script>

Install the Polymer-CLI

First, make sure you have the Polymer CLI and npm (packaged with Node.js) installed. Run npm install to install your element's dependencies, then run polymer serve to serve your element locally.

Viewing Your Element

$ polymer serve

Running Tests

WIP