nandakumar-react-component-artifact
TypeScript icon, indicating that this package has built-in type declarations

1.0.0 • Public • Published

Nandakumar React component publish

This is a React component publis library created using React, TypeScript, Rollup, Storybook, Jest, and React Testing Library.

Installation

You can install this library using npm:

npm install @nandakumar-react-component-artifact

Usage

To use this React component publish in your project, import the components you need from the library and use them in your React components.

import React from "react";
import { Input, Button } from "@nandakumar-react-component-artifact";

function App() {
  return (
    <div>
      <Input
        id="name"
        disabled={false}
        label="Enter your name"
        message="This field is required"
        error={false}
        success={false}
        onChange={(e) => console.log(e.target.value)}
        placeholder="Enter your name here"
      />
      <Button
        size="medium"
        primary={true}
        disabled={false}
        text="Click me!"
        onClick={() => alert("Button clicked!")}
      />
    </div>
  );
}

export default App;

Contributing

This library is a demo for learning purposes only and is not intended to be contributed to. You can fork the repository and use the code for your personal use or learning.

Steps

  • Fork the repository.
  • Clone the repository to your local machine.
  • Install the dependencies using npm install.
  • View the components in the browser using npm run storybook.
  • Make your changes.
  • Test the changes using npm test.
  • Build the library using npm run build.
  • Commit the changes and push them to your forked repository.
  • Publish the package on npm.
  • Install and use the package in your project.

License

This React component publish is licensed under the MIT License.

Dependents (0)

Package Sidebar

Install

npm i nandakumar-react-component-artifact

Weekly Downloads

0

Version

1.0.0

License

MIT

Unpacked Size

63.6 kB

Total Files

50

Last publish

Collaborators

  • nandarvp