Input
A styled input
based component. Allows customization with styled-components
package.
Demo
API
Component takes all input
related props given.
Example:
import { Input, Button } from 'react-horcrux';
export default YourForm function() {
return(
<form onSubmit={doSomething}>
<Input
name="first_name"
onChange={saveTheName}
placeholder="name"
type="text"
/>
<Button type="submit">do it</Button>
</form>
);
}