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 🙏

© 2025 – Pkg Stats / Ryan Hefner

zebra-block

v1.0.9

Published

Component for displaying a zebra block for debugging purposes

Readme

Zebra block

  1. Install zebra-block:

    npm install zebra-block
  2. Import component into your project

    import { Zebra } from 'zebra-block';
  3. Usage examples:

// Example 1: Default Zebra Block

<Zebra>
  {/* Any content you want to show inside Zebra Block */}
</Zebra>

// Example 2: Zebra Block with JSON Object

const jsonExample = {
  key: 'value',
  nested: { anotherKey: 'anotherValue' },
};
<Zebra json={jsonExample} />

// Example 3: Zebra Block with Custom Colors

<Zebra colors={['#ff9999', '#ffcc99']}>
  {/* Custom content */}
</Zebra>

// Example 4: Zebra Block with Border and Padding

<Zebra border={2} padding={10}>
  {/* Custom content */}
</Zebra>

// Example 5: Zebra Block with fixed Max Height

<Zebra height={150}>
  {/* Custom content */}
</Zebra>

// Example 6: Zebra Block with Custom Styles

<Zebra style={{ borderRadius: '8px', boxShadow: '0 0 10px rgba(0, 0, 0, 0.2)' }}>
  {/* Custom content */}
</Zebra>

// Example 7: Zebra Block with Custom Element Type

<Zebra as="pre">
  {/* Custom content */}
</Zebra>

// Example 8: Zebra Block with JSON (ignores Children prop)

<Zebra json={jsonExample}>
  {/* This content will be ignored, because JSON prop passed */}
  <p>Custom content</p>
</Zebra>
  1. Props:

    | prop | type | default | description | |----------|----------|----------------------------|------------------------------------------------------------------------------------------------------------------------------------------------------------------------| | as | string | 'div' | Element type for zebra component | | children | any | undefined | Content displayed inside zebra (but if you pass Json prop - it preferred by default, and children will be ignored) | | color | string | '#fcfcfc77' | color for dashed border if border declared | | border | number | 0 | number for border in pixels | | colors | string[] | ['#fcfcfc77', '#eeeeee77'] | array of two colours for zebra background gradient | | padding | number | undefined | Zebra padding | | height | number | undefined | maxHeight value for zebra | | style | {} | {} | any other styles you want to define for zebra | | json | {} | null | Json object you can display inside of zebra |

  2. Development:

    • Run the Storybook for local development:

      npm run storybook

      Explore existing examples in Storybook and add your own stories to showcase different features or use cases for the Zebra block component.

Contributing

This project is open for improvements and maintenance. Feel free to fork and make your own modifications.

License

MIT