Socket
Socket
Sign inDemoInstall

@airbnb/lunar-forms

Package Overview
Dependencies
Maintainers
5
Versions
48
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@airbnb/lunar-forms

Form functionality for Lunar.


Version published
Weekly downloads
20
decreased by-72.22%
Maintainers
5
Weekly downloads
 
Created
Source

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>;

FAQs

Package last updated on 10 Oct 2019

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

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc