🚀 DAY 5 OF LAUNCH WEEK: Introducing Socket Firewall Enterprise.Learn more →
Socket
Book a DemoInstallSign in
Socket

viskan-deku-form

Package Overview
Dependencies
Maintainers
4
Versions
4
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

viskan-deku-form

Form components for deku

latest
Source
npmnpm
Version
3.0.1
Version published
Weekly downloads
0
-100%
Maintainers
4
Weekly downloads
 
Created
Source

viskan-deku-form Build Status

Form components for deku

Install

$ npm install --save viskan-deku-form

Usage

import {Form, InputField} from 'viskan-deku-form';

function handle(data, form) {
	console.log(data);
	//=> 'username=foo&password=unicorn'
}

export function render() {
	return (
		<Form onSubmit={handle}>
			<InputField name='username' label='Username'  validate={['onChange', 'onBlur', 'onInput']} required/>
			<InputField name='password' label='Password' minLength='6' required/>
			<button type='submit'>Sign in</button>
		</Form>
	);
}

Keywords

component

FAQs

Package last updated on 23 Mar 2017

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts