https://github.com/bedus-creation/inertiajs-form-builder
https://github.com/bedus-creation/inertiajs-form-builder
Last synced: 12 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/bedus-creation/inertiajs-form-builder
- Owner: bedus-creation
- Created: 2025-02-04T18:30:14.000Z (over 1 year ago)
- Default Branch: main
- Last Pushed: 2025-02-04T20:36:47.000Z (over 1 year ago)
- Last Synced: 2025-03-03T03:16:15.960Z (over 1 year ago)
- Language: PHP
- Size: 99.6 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: readme.md
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">