- Info cards
- Forms
- 15+ inputs types and output types
- Forms schemas
- Plugin system
- Internationalization
- Input & Output groups
- Form validation
- Server side validation
- Multiple and sortable fields
You can try it online
# Install before
npm i vue@next bootstrap@next
# Install reforms
npm i @empla/reforms
<reforms-form>
<reforms-input type="string" name="firstname" label="First Name" validation="required|string" />
<reforms-input type="string" name="lastname" label="Last Name" validation="required|string" />
<reforms-input type="html" name="notes" label="Notes" />
<button type="submit" class="btn btn-success">
Submit
</button>
</reforms-form>
It creates form:
You can create form with schema:
const schema = {
firstname: {
type: 'string',
attrs: {
validation: 'required',
label: 'First name'
}
},
lastname: {
type: 'string',
attrs: {
validation: 'required',
label: 'Last name'
}
},
notes: {
type: 'html',
attrs: {
label: 'Notes',
}
}
};
And pass it to form:
<reforms-form :schema="schema">
<button type="submit" class="btn btn-success">
Submit
</button>
</reforms-form>
https://reforms.js.org/documentation/
Copyright © 2021 EMPLA GROUP, LLP
Made with ❤️ by Malik Zharykov️