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

cloud-panda-components

v1.3.6

Published

React Reusable Components.

Readme

Cloud Panda Components

Description:

React Reusable Components.

first, install cloud panda components using node package manager(npm) #### > npm i cloud-panda-components

Validations

| Validation | Description | | ----------------- | ---------------------------------------------------------------- | | required | Validates that the value must not be empty. | | maxLength | It is used to validate the maximum characters of the fields | | minLength | It is used to validate the minimum characters of the fields | | isEmail | Validates that a value is a valid email address. | | isNumeric | Validates that the value is only a number. | | alpha | Alphabet only validation . | | alphaNum | Validates alpha numeric string value. | | sameWith | The given field must match the value you passed under validation | | isArray | The value must be a valid array | | file{maxSize} | Validates the maximum filesize of the given file | | file{extension} | Validates the allowed file types of the given file | | custom | Custom validation that uses regular expression/pattern |

How to use Validations!

Example Code:

required

<Input validations={ { required: true } } /> -- Required

maxLength

<Input validations={ { maxLength: { value: 10 } } } /> -- Limit the maximum length of the input fields

minLength

<Input validations={ { minLength: { value: 6 } } } /> -- Minimum character length

isEmail

<Input validations={ { isEmail: true } } />

isNumeric

<Input validations={ { isNumeric: { value: 10 } } } /> -- Valid numbers only

isNumeric

<Input validations={ { alpha: true } } /> -- Alphabet only

sameWith

<Input validations={ { sameWith: { value: 'Pass123' } } } />

alphaNum

<Input validations={ { alphaNum: true } } /> -- For Alpha Numeric Validations

isArray

<Input validations={ { sameWith: {isArray: ['Mangos', 'Apple'] } } } /> -- Valid array value only.

file{maxSize}

<Input validations={ { file: { maxSize: 2000 } } } /> -- Validate maximum size of file.

file{Extension}

<Input validations={ { file: { ext: 'docx|png|jpg|jpeg' } } } /> -- Validate allowed extensions for file.

custom

<Input validations={ { custom: { rules: /[a-z0-9!#$%&'+/=?^_{|}~-]+(?:\.[a-z0-9!#$%&'*+/=?^_{|}~-]+)@(?:a-z0-9?.)+a-z0-9?/ } } } /> -- You can set your own validations with the use of regular expression

You can customize your own error message for each validations.

Example Code with custom error message

<Input validations={ { required: {message: 'This fields is empty'} } } /> <Input validations={ { maxLength: { value: 10, message: 'Maximum Length exceeded' } } } />

Multiple validations

<Input validations={ { required: {message: "This is a required field."}, isNumeric: {message: 'A valid number value is required.'} } } />

Note: Each validations has its own default error message, so it's okay to not set it if you want.

Props

| Props | Description | | ---------------- | ------------------------------------------------------------------------ | | label | Text of label, default: "No Label" | | containerClass | It refers to the container of input and label, default: "form-group" | | inputProps | refering to the props of input e.g(placeholder, type) | | labelProps | It refers to the properties of label e.g(for, className) | | validations | Object property that contains the validations | | onChange | It returns your function on onChange event of the input | | validate | When set to false, the input will not validate. default: true |

Important Note:

required name properties on inputProps