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

@roboholix/component-browser

v0.0.3

Published

Component Browser

Downloads

5

Readme


A set of React components

Platform | CI Status ---------|:--------- Linux | Linux Build Status OSX | OSX Build Status Windows | Windows Build status

Documentation (Live Demo)

See a live demo of the components and their respective documentation.

The demo component browser includes:

  • Rendered example components that are included in this library
  • Code snippets used to generate the example components
  • Component prop options, including default values and requirements

Installation

npm install @roboholix/component-browser

Components

See the component browser demo for up-to-date documentation and examples using latest version of @roboholix/component-browser.

Useage

Importing Individual Components

Choose one of the following ways to import or require a component into your project.

:point_right: Examples marked for production use will only import code needed for the specified component

| Module Syntax | Example Code | Production | Development | | --- | --- | :---: | :---: | | import | import MyButton from '@roboholix/component-browser/MyButton'; | ✔ | ✔ | | import | import { MyButton } from '@roboholix/component-browser'; | ✗ | ✔ | | require | const MyButton = require('@roboholix/component-browser/MyButton'); | ✔ | ✔ | | require | const MyButton = require('@roboholix/component-browser').MyButton; | ✗ | ✔ |

Importing Multiple Components

// To only import code you need, you can import each individual component on their own
import MyButton from '@roboholix/component-browser/MyButton';
import MyHeader from '@roboholix/component-browser/MyHeader';

:warning: The following syntax will import the entire library (an additional ~5kb), instead of only code needed only for the components specified

// Add MyButton and MyHeader to your project with ES module syntax
import { MyButton, MyHeader } from '@roboholix/component-browser';
// Add MyButton and MyHeader to your project with CommonJS syntax
const RoboholixComponents = require('@roboholix/component-browser');

const MyButton = RoboholixComponents.MyButton;
const MyHeader = RoboholixComponents.MyHeader;
const RoboholixComponents = require('@roboholix/component-browser');

const {
  MyButton,
  MyHeader
} = RoboholixComponents;

Bug Reporting

Click here to report any bugs or open an issue with this package.