0.2.2 • Published 8 years ago

rec-form v0.2.2

Weekly downloads
4
License
MIT
Repository
github
Last release
8 years ago

Logo rec-form

Form component for React written with ES6, SASS and rec-bootstrap.

Radio buttons, etc, coming soon.

Screenshot

Screenshot

Usage

import React                from "react";
import { Input, Button }    from "rec-form";

ReactDOM.render( (
    <div>
        <Input placeholder="Username" value="Predefined value" />
        <Input placeholder="Password" type="password" />
        <Input placeholder="Color" type="color" />
        <Input placeholder="Date" type="date" />
        <Input placeholder="Month" type="month" />
        <Input placeholder="Number" type="number" />
        <Input placeholder="Range" type="range" />
        <Button value="Back" disabled />
        <Button value="Next" />
    </div>
), document.getElementById( "app" ) );

You can also use the global variable ReactForm:

let Input  = ReactForm.Input;
let Button = ReactForm.Button;

Component API

Input Component

PropertyTypeDefaultRequiredDescription
placeholderStringnullInput placeholder
requiredBooleanfalseWhether the input must be filled
value*nullInput value
typeStringtextInput type

Button Component

PropertyTypeDefaultRequiredDescription
disabledBooleanfalseWhether the button is disabled
valueStringOkButton value
0.2.2

8 years ago

0.2.1

8 years ago

0.2.0

8 years ago

0.1.9

8 years ago

0.1.8

8 years ago

0.1.7

8 years ago

0.1.6

8 years ago

0.1.5

8 years ago

0.1.4

8 years ago

0.1.3

8 years ago

0.1.2

8 years ago

0.1.1

8 years ago

0.1.0

8 years ago

0.0.3

8 years ago

0.0.29

8 years ago

0.0.28

8 years ago

0.0.27

8 years ago

0.0.26

8 years ago

0.0.25

8 years ago

0.0.24

8 years ago

0.0.23

8 years ago

0.0.22

8 years ago