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

https://github.com/bedus-creation/inertiajs-form-builder


https://github.com/bedus-creation/inertiajs-form-builder

Last synced: 12 months ago
JSON representation

Awesome Lists containing this project

README

          

# MantraPHP
The Form builder library for InertiaJs Laravel

> This package is in development stage.

## Development Plans
* [ ] Fields
* [ ] TextInput
* [x] Label
* [x] Type
* [ ] Validation
* [ ] Layouts

## Uses
### Define the Form with PHP
```php
Route::get('/', function () {
return Inertia::render('Form', [
'form' => [
TextInput::make('name'),
TextInput::make('email'),
TextInput::make('password')
->type('password')
]
]);
});
```
### Display the Form with `Mantra` Component
```vue



import Mantra from "../Components/Mantra"

defineProps({
form: {
required: true,
type: [Object],
},
})
```

### Output
<img src="./docs/images/text-input.png">