@airbnb/lunar-forms
Form functionality for Lunar.
Last updated 2 months ago by milesj .
MIT · Repository · Original npm · Tarball · package.json
$ cnpm install @airbnb/lunar-forms 
SYNC missed versions from official npm registry.

Lunar Forms

Provides a robust form management layer powered by final-form.

yarn add @airbnb/lunar-forms

Usage

The package provides a Form component, that utilizes React context and final-form to manage the state of all fields within itself. To operate correctly, all field components provided in the core package have an equivalent component in this package that automatically connects to the parent form instance, they are: Autocomplete, CheckBox, CheckBoxController, DatePickerInput, DateTimeSelect, Input, RadioButtonController, Select, Switch, TextArea, and much more.

import Form, { Input, Select } from '@airbnb/lunar-forms';

<Form onSubmit={this.handleSubmit}>
  <Input name="name" label="Name" />

  <Select name="fruit" label="Fruit">
    <option value="apple">Apple</option>
    <option value="banana">Banana</option>
    <option value="orange">Orange</option>
    <option value="other">Other</option>
  </Select>
</Form>;

Current Tags

  • 3.3.2                                ...           latest (2 months ago)
  • 2.5.0-alpha.0                                ...           next (10 months ago)

48 Versions

  • 3.3.2                                ...           2 months ago
  • 3.3.1                                ...           3 months ago
  • 3.3.0                                ...           3 months ago
  • 3.2.0                                ...           3 months ago
  • 3.1.0                                ...           4 months ago
  • 3.0.2                                ...           4 months ago
  • 3.0.1                                ...           5 months ago
  • 3.0.0                                ...           5 months ago
  • 2.8.1                                ...           6 months ago
  • 2.7.4                                ...           6 months ago
  • 2.7.3                                ...           6 months ago
  • 2.7.2                                ...           6 months ago
  • 2.7.1                                ...           8 months ago
  • 2.7.0                                ...           8 months ago
  • 2.6.1                                ...           9 months ago
  • 2.6.0                                ...           9 months ago
  • 2.5.3                                ...           9 months ago
  • 2.5.2                                ...           10 months ago
  • 2.5.1                                ...           10 months ago
  • 2.5.0                                ...           10 months ago
  • 2.5.0-alpha.1                                ...           10 months ago
  • 2.5.0-alpha.0                                ...           10 months ago
  • 2.4.2                                ...           10 months ago
  • 2.4.1                                ...           a year ago
  • 2.4.0                                ...           a year ago
  • 2.3.3                                ...           a year ago
  • 2.3.2                                ...           a year ago
  • 2.3.1                                ...           a year ago
  • 2.3.0                                ...           a year ago
  • 2.2.0                                ...           a year ago
  • 2.1.2                                ...           a year ago
  • 2.1.1                                ...           a year ago
  • 2.1.0                                ...           a year ago
  • 2.0.1                                ...           a year ago
  • 2.0.0                                ...           a year ago
  • 2.0.0-rc.0                                ...           a year ago
  • 2.0.0-alpha.1                                ...           a year ago
  • 2.0.0-alpha.0                                ...           a year ago
  • 1.0.8                                ...           a year ago
  • 1.0.7                                ...           a year ago
  • 1.0.6                                ...           a year ago
  • 1.0.5                                ...           a year ago
  • 1.0.4                                ...           a year ago
  • 1.0.3                                ...           a year ago
  • 1.0.1                                ...           a year ago
  • 1.0.0                                ...           a year ago
  • 1.0.0-alpha.1                                ...           a year ago
  • 1.0.0-alpha.0                                ...           a year ago
Downloads
Today 0
This Week 0
This Month 0
Last Day 0
Last Week 0
Last Month 48
Dependencies (8)
Dev Dependencies (2)
Dependents (0)
None

Copyright 2014 - 2017 © taobao.org |