Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/nextml-code/react-form-components
https://github.com/nextml-code/react-form-components
Last synced: 1 day ago
JSON representation
- Host: GitHub
- URL: https://github.com/nextml-code/react-form-components
- Owner: nextml-code
- License: apache-2.0
- Created: 2020-11-16T13:54:36.000Z (about 4 years ago)
- Default Branch: master
- Last Pushed: 2021-05-31T14:03:17.000Z (over 3 years ago)
- Last Synced: 2024-04-25T17:20:26.623Z (9 months ago)
- Language: JavaScript
- Size: 2.57 MB
- Stars: 1
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# React Form Components
Some form components for React
## Installation
```
npm install @aiwizo/react-form-components
```## Basic Usage
### Select
```JavaScript
import { Select } from '@aiwizo/react-form-components';{
return props.name;
}}// callback triggered when an option
// is selected
onSelect={(option) => { /* Do something */ }}// Set index of default value in the
// list of options (defaults to 0)
defaultIndex={2}
/>
``````JavaScript
import { Button } from '@aiwizo/react-form-components';```
```JavaScript
import { Checkbox } from '@aiwizo/react-form-components';{ /* Do something */ }}
// Value that is passed to the onChange
// callback
value="some value"// Optional label displayed to the
// right of the checkbox
label="Lorem Ipsum"
/>
``````JavaScript
import { Input } from '@aiwizo/react-form-components';```
```JavaScript
import { Label } from '@aiwizo/react-form-components';Lorem ipsum
```