0.0.28 • Published 2 years ago
@any-ui/documents v0.0.28
Simple, self contained form management
Built on top of React Final Form
Warning
This is an unstable alpha channel of any-ui, find the latest stable release here.
Installation
// with npm
npm install @any-ui/form@next
// with yarn
yarn add @any-ui/form@next
Please note: @next
will only point to pre-releases; to get the latest stable release use @latest
instead.
Example code showing intended use
import {
EmailField,
Form,
FormSubmitHandler,
PasswordField,
TextField,
} from '@any-ui/form'
interface IFormFields {
name: string
password: string
email: string
address: string
}
const handleSubmit: FormSubmitHandler<IFormFields> = async values => {
alert(`Submit success for ${values.name}`)
}
<Form<IFormFields> onSubmit={handleSubmit}>
<TextField
required
autoFocus
name="name"
label="Name" />
<PasswordField
required
name="password"
/>
<EmailField
name="email"
label="Email"
/>
<TextField
name="address"
label="Address"
rows={5}
/>
</Form>
Please note that @next
will only point to pre-releases; to get the latest stable release use @latest
instead.
Documentation
One day....
4.0.0-alpha.14
2 years ago
4.0.0-alpha.10
2 years ago
4.0.0-alpha.8
2 years ago
4.0.0-alpha.5
2 years ago
4.0.0-alpha.6
2 years ago
4.0.0-alpha.3
2 years ago
4.0.0-alpha.1
2 years ago
4.0.0-alpha.2
2 years ago
4.0.0-alpha.0
2 years ago
0.0.28
6 years ago
0.0.27
6 years ago
0.0.26
6 years ago
0.0.25
6 years ago
0.0.24
6 years ago
0.0.23
6 years ago
0.0.22
6 years ago
0.0.21
6 years ago
0.0.20
6 years ago
0.0.7
6 years ago
0.0.6
6 years ago
0.0.5
6 years ago
0.0.4
6 years ago
0.0.3
6 years ago
0.0.2
6 years ago
0.0.1
6 years ago
0.0.0
6 years ago