Start sharing components as a team!Share components as a team!Join Bit to build your applications faster.Get Started Free

form

v0.1.4arrow_drop_down
v0.1.4
v0.1.3
v0.1.2
v0.1.0
STATUS
Passing
DOWNLOADS
37
LICENSE
MIT
VISIBILITY
Public
PUBLISHED
A year ago
SIZE
20 KB
1 contributor
Install form as a package?
Copied
npm i @bit/ans.base-ui.form
Set Bit as a scoped registryLearn more
npm config set '@bit:registry' https://node.bit.dev
Component Example
React
React
Vue
Angular
React Native
Add dependency... help_outline
Just
import
any of the 1 million components
and packages in Bit or NPM to the example.
import Button from '@bit/grommet.grommet.button';
import Lodash from 'lodash';
toggle layout
const { Field } = Form;
	<Form>
      <Field validations={['isEmail']}>
        <Input
          type="email"
          icon="Mail"
          placeholder="Email Address"
          name="email" />
      </Field>
      <Field validations={['required']}>
        <Input
          type="password"
          icon="Lock"
          placeholder="Password"
          name="password" />
modifieddraft
const { Field } = Form;
	<Form>
      <Field validations={['isEmail']}>
        <Input
          type="email"
          icon="Mail"
          placeholder="Email Address"
          name="email" />
      </Field>
      <Field validations={['required']}>
        <Input
          type="password"
          icon="Lock"
          placeholder="Password"
          name="password" />
modifieddraft
chevron_left
chevron_right
Properties
NameTypeDescription
onChange
function

modified onChange event, callback({values, event, warnings, valid})

onSubmit
function

modified onSubmit event, callback({values, event, warnings, valid})