2.0.2 • Published 7 months ago
@shelacek/formica v2.0.2
Formica
Preact forms made easy!
See documentation on shelacek.bitbucket.io/formica.
<Form value={form} onChange={this.handleChange} onSubmit={this.handleSubmit}>
<label>Name: <input name="name" type="text" required /></label>
<FormGroup name="info">
<label>Bio: <textarea name="bio" maxLength="250" /></label>
<label>Website: <input name="web" type="text" pattern="(http://|https://)\S{1,63}" /></label>
</FormGroup>
<button type="submit">Submit form</button>
</Form>
Features
- Close to native: write forms like you do in plain HTML
- Reactive: the data in the form are those that are in the component state and vice versa
- Freedom: you can directly use native inputs, create custom inputs or incorporate third party ones
- Use this.state, hooks or signals, class components or functional components. Your project, your rules!
- Light as a feather: only ~2.2kiB mingzipped and without dependencies (except Preact)
2.0.2
7 months ago
2.0.1
1 year ago
2.0.0
3 years ago
2.0.0-alpha.6
3 years ago
2.0.0-alpha.5
5 years ago
1.5.2
5 years ago
2.0.0-alpha.4
5 years ago
2.0.0-alpha.3
5 years ago
2.0.0-alpha.2
5 years ago
2.0.0-alpha.1
5 years ago
1.5.1
5 years ago
1.5.0
5 years ago
1.4.0
6 years ago
1.3.0
6 years ago
1.2.0
6 years ago
1.1.1
7 years ago
1.1.0
7 years ago
1.0.0
7 years ago
0.3.0
7 years ago
0.2.4
7 years ago
0.2.3
7 years ago
0.2.2
7 years ago
0.2.1
7 years ago
0.2.0
7 years ago
0.1.1
7 years ago
0.1.0
7 years ago