rec-form
Form component for
React
written with ES6, SASS and rec-bootstrap.
Radio buttons, etc, coming soon.
Screenshot
Usage
;; ReactDOM;
You can also use the global variable ReactForm
:
let Input = ReactFormInput;let Button = ReactFormButton;
Component API
Input Component
Property | Type | Default | Required | Description |
---|---|---|---|---|
placeholder | String |
null |
✕ | Input placeholder |
required | Boolean |
false |
✕ | Whether the input must be filled |
value | * | null |
✕ | Input value |
type | String |
text | ✕ | Input type |
Button Component
Property | Type | Default | Required | Description |
---|---|---|---|---|
disabled | Boolean |
false |
✕ | Whether the button is disabled |
value | String |
Ok | ✕ | Button value |