A Laravel View Components package built on the Tabler UI Kit - a free and open-source HTML Dashboard UI Kit built on Bootstrap.
The goal of this package is to provide a list of easy to use form inputs as View Components in Blade to mimic the HTML package from LaravelCollective while also building on the Tabler UI Kit. All the form elements listed on the Tabler Docs should eventually be available here.
- Install a fresh copy of Laravel 7.x or above.
- Install this package via
composer require laravel-view-components/forms
. Laravel 7.x will automatically discover this package. No need to register the service provider. - Install the Tabler UI Preset.
- Run
npm install && npm run dev
to build the frontend
If you are not familiar with Laravel 7.x View Components, please see the Laravel Docs for details.
There are some common component attributes notated below. Specific components may have additional attributes detailed below.
The following Tabler UI components are available in this package.
<x-form-text name="example-text-input" label="Text" placeholder="Input placeholder"/>
<div class="form-group">
<label for="example-text-input" class="form-label">Text</label>
<input name="example-text-input" type="text" class="form-control " placeholder="Input placeholder" autocomplete="off">
</div>
<x-form-password name="example-password-input" label="Pasword" placeholder="Input placeholder"/>
<div class="form-group">
<label for="example-password-input" class="form-label">Pasword</label>
<input name="example-password-input" type="password" class="form-control " placeholder="Input placeholder" autocomplete="off">
</div>
<x-form-checkbox />
<x-form-color />
<x-form-email />
<x-form-file />
<x-form-number />
<x-form-phone />
<x-form-radio />
<x-form-search />
<x-form-select />
<x-form-select.images />
<x-form-select.tags />
<x-form-select.users />
<x-form-toggle />