Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/malikzh/reforms

WIP: Vue 3 and Bootstrap 5 forms and cards generator
https://github.com/malikzh/reforms

bootstrap bootstrap5 form generator input javascript js schema vue vue3

Last synced: 12 days ago
JSON representation

WIP: Vue 3 and Bootstrap 5 forms and cards generator

Awesome Lists containing this project

README

        


Reforms.js

# Reforms.js

Vue 3 and Bootstrap 5 forms and cards generator

---

[![Build](https://github.com/empla/reforms/actions/workflows/build.yml/badge.svg)](https://github.com/empla/reforms/actions/workflows/build.yml)
![GitHub](https://img.shields.io/github/license/empla/reforms)
![npm](https://img.shields.io/npm/v/@empla/reforms)
![npm](https://img.shields.io/npm/dt/@empla/reforms)
![GitHub Repo stars](https://img.shields.io/github/stars/empla/reforms?style=social)

---

## Features

- 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

# Demo

You can [try it online](https://codesandbox.io/s/reforms-demo-jbpyv)

## Installation

```sh
# Install before
npm i vue@next bootstrap@next

# Install reforms
npm i @empla/reforms
```

## Example

### Example with markup

```vue





Submit

```

It creates form:

![Form](content/form1.png)

### Example with schema

You can create form with schema:

```js
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:

```vue


Submit

```

## Documentation

https://reforms.js.org/documentation/

## License

[MIT](LICENSE)

---

Copyright © 2021 EMPLA GROUP, LLP

Made with ❤️
by [Malik Zharykov](https://github.com/malikzh)️