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 🙏

© 2024 – Pkg Stats / Ryan Hefner

@micromed/herz-ui

v2.0.3

Published

Herz UI (/hɛrʦ/ - Hérts) is a design system containing a styleguide(colors, grid, icons, typography) and library of UI components

Downloads

245

Readme

herz-ui

Herz UI (/hɛrʦ/ - Hérts) is an implementation of UI Components based on Micromed's design system called Herz

Table of Contents

Installation

Using Herz-UI in your project

You can easily install in your project using your favorite package manager

// using npm
npm i @micromed/herz-ui

// using yarn
yarn add @micromed/herz-ui

you'll find our component documentation on our website

Want to contribute?

If you found a bug, have issues or feature proposals, feel free to open an Issue or send us a Pull Request, you can also read more about our contribution guidelines

Getting started

Setup

clonning the repo

git clone https://github.com/micromedio/herz-ui.git
cd herz-ui

installing dependencies with yarn

yarn

Running in development:

yarn dev
  • Runs the app in the development mode.

  • The page will reload if you make edits.

  • You will also see any lint errors in the console

  • Project will be available at localhost:6060

Building for production

yarn build
  • Builds the app for production to the styleguide/ folder
  • Compiles the exported modules into lib/ folder
  • bundles react in production mode optimizing for best performance

Testing

yarn test
  • Launches the test runner in the interactive watch mode.
yarn build-storybook
  • Build storybook as a static project
yarn storybook

Testing in another project

While developing you may want to test your changes in another project that has herz-ui as a dependency. To do that we can use yarn link to link your local version of herz-ui to your project.

One problem that can arise from that is that there will be two react versions running in your application, resulting in this error: Invalid Hook Call Warning.

To fix this we need to not only link our local herz-ui to the other project, but also link react and react-dom from the other project to hearz-ui, so it uses those versions instead of the ones in herz-ui node_modules. The solution is this:

  1. In the external project folder run:
pushd node_modules/react && yarn link; popd
pushd node_modules/react-dom && yarn link; popd
  1. In the herz-ui folder run:
yarn link
yarn link react && yarn link react-dom
  1. In the external project folder run:
yarn link "@micromed/herz-ui"

Now the external project is using the local compiled version of herz-ui and there should be no react errors.