https://github.com/arifnextdev/daynamicinputs
A reusable React component for adding input fields dynamically
https://github.com/arifnextdev/daynamicinputs
npm-package reactjs
Last synced: 3 months ago
JSON representation
A reusable React component for adding input fields dynamically
- Host: GitHub
- URL: https://github.com/arifnextdev/daynamicinputs
- Owner: arifnextdev
- Created: 2024-03-08T20:35:03.000Z (over 1 year ago)
- Default Branch: main
- Last Pushed: 2024-03-08T20:36:19.000Z (over 1 year ago)
- Last Synced: 2025-03-23T06:02:58.832Z (3 months ago)
- Topics: npm-package, reactjs
- Language: TypeScript
- Homepage: https://www.npmjs.com/package/addinputs
- Size: 11.7 KB
- Stars: 1
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# addinputs
A reusable React component for adding input fields dynamically.
## Installation
You can install the `addinputs` package via npm:
```bash
npm install addinputs```
# Usage
```bash
import { AddInput } from 'addinputs';
```
# Example Usage
```bash
import React from 'react';
import { AddInput } from 'addinputs';const MyComponent = () => {
return (
Add Inputs
);
};export default MyComponent;
```# Props
btnName (string): The label for the button that adds input fields.
label (string): The label for each input field.
type (string): The type of input field (e.g., 'text', 'number', 'email').
btnStyle (string, optional): CSS class for styling the button.
inputStyle (string, optional): CSS class for styling the input fields.