MpDS Add-Field
React component for faster and simpler web development.
Installation
MpDS Add-Field is available as an [npm package](npm i mpds-add-field).
// with npm
npm i mpds-add-field
Usage
Here is a quick example to get you started, it's all you need:
import * as React from "react";
import MpdsAddField from "mpds-add-field"
function App() {
return <MpdsAddField colorOfTheButton="primary"></MpdsAddField>
}
ReactDOM.render(<App />, document.querySelector('#app'));
Props
Name | Description | Default |
---|
onAddClick
|
OnClick in the plus button
|
-
|
disableButton
|
Disable plus button
|
-
|
onChangeTextfield
|
onChange of the input
|
-
|
colorOfTheButton
|
Color given to the button
"primary"
"secondary"
"inherit"
"default"
|
-
|
Yes, it's really all you need to get started! Try it in:
[CodeSandbox](https://codesandbox.io/)
License
No License. "(...) nobody else can copy, distribute, or modify your work without being at risk of take-downs, shake-downs, or litigation."