Remove or alter the "mt-4"
wrabit opened this issue · comments
Would be nice to able to control this via something like
<x-form-input field-class="mb-2" />
IMO too much spacing for a compact form, better to be adjustable.
Something like:
FormInput.php
string $name,
string $label = '',
string $type = 'text',
string $fieldClass = 'mt-4'
...
form-input.blade.php
<div class="@if($type === 'hidden') hidden @else $fieldClass @endif">
Maybe wrapper-class is more generic.
You can publish the Blade views and customize to your needs:
https://github.com/protonemedia/laravel-form-components#customize-the-blade-views