radiocubito / laravel-blade-input
Laravel blade input components made with Tailwind CSS
Fund package maintenance!
radiocubito
Requires
- php: ^7.4
Requires (Dev)
- friendsofphp/php-cs-fixer: ^2.16
- nunomaduro/collision: ^4.1
- orchestra/testbench: ^5.3
- phpunit/phpunit: ^9.0
- psalm/plugin-laravel: ^1.2
- vimeo/psalm: ^3.11
This package is auto-updated.
Last update: 2021-10-16 14:42:29 UTC
README
laravel-blade-input is a small collection of blade components for input fields. Currently text, textarea and select are available.
Installation
You can install the package via composer:
composer require radiocubito/laravel-blade-input
Usage
<x-input.group label="Email address" for="email" :error="$errors->first('email')"> <x-input.text wire:model.lazy="email" id="email" required autofocus /> </x-input.group> <x-input.group label="Countries" for="countries" :error="$errors->first('countries')"> <x-input.select wire:model="countries" id="countries" :options="$countries" /> </x-input.group> <x-input.group label="Description" for="description" :error="$errors->first('description')"> <x-input.textarea wire:model="description" id="description" /> </x-input.group>
Testing
composer test
Changelog
Please see CHANGELOG for more information on what has changed recently.
Contributing
Please see CONTRIBUTING for details.
Security
If you discover any security related issues, please email oliver@radiocubito.com instead of using the issue tracker.
Credits
License
The MIT License (MIT). Please see License File for more information.