Socket
Book a DemoInstallSign in
Socket

@usercentric/uc-design-system-forms

Package Overview
Dependencies
Maintainers
3
Versions
2
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@usercentric/uc-design-system-forms

Form functionality for UCDS.

latest
Source
npmnpm
Version
4.1.1
Version published
Weekly downloads
0
Maintainers
3
Weekly downloads
 
Created
Source

UCDS Forms

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

yarn add @usercentric/uc-design-system-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 '@usercentric/uc-design-system-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 30 Aug 2020

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