Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@doctolib/react-form

Package Overview
Dependencies
Maintainers
2
Versions
13
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@doctolib/react-form

Set of React form components based on react-formsy.

  • 4.0.0
  • latest
  • Source
  • npm
  • Socket score

Version published
Maintainers
2
Created
Source

react-form

Build Status Coverage Status Dependency Status devDependency Status

Set of React form components based on react-formsy.

Install

npm install @doctolib/react-form

Usage

Form

Refer to formsy-react.

import { Form } from '@doctolib/react-form'
const Component = () => <Form />

HOC

Wrapper used to create custom control compatible with react-form validation. All props, states and methods are accessible via props in the wrapped component.

import { HOC } from '@doctolib/react-form'
const Component = HOC((...props) => <input {...props} />)

Input

Input component.

import { Input } from '@doctolib/react-form'
const Component = () => <Input name="firstname" />

Textarea

Textarea component.

import { Textarea } from '@doctolib/react-form'
const Component = () => <Textarea name="comment" />

Select

Select component.

import { Select } from '@doctolib/react-form'
const Component = () => <Select options={{ value: 'Label' }} name="select" />

InputAddon

Addon for input.

import { Input, InputAddon } from '@doctolib/react-form'
const Component = () => (
  <Input name="firstname" leftAddon={<InputAddon>hey</InputAddon>} rightAddon={<InputAddon>you</InputAddon>} />
)

RadioGroup

Group of radios.

import { RadioGroup } from '@doctolib/react-form'
const Component = () => <RadioGroup name="radio" options={{ value: 'Label' }} />

CheckboxGroup

Group of checkboxes.

import { CheckboxGroup } from '@doctolib/react-form'
const Component = () => <CheckboxGroup name="checkbox" options={{ value: 'Label' }} />

License

MIT

Keywords

FAQs

Package last updated on 05 Apr 2018

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