rawilk / laravel-form-components
Set of Blade components for TailwindCSS forms.
Fund package maintenance!
rawilk
Requires
- php: ^8.0
- illuminate/filesystem: ^8.0
- illuminate/support: ^8.0
- illuminate/view: ^8.0
Requires (Dev)
- blade-ui-kit/blade-heroicons: ^0.3
- friendsofphp/php-cs-fixer: ^2.16
- gajus/dindent: ^2.0
- orchestra/testbench: ^6.4
- phpunit/phpunit: ^9.4
- psalm/plugin-laravel: ^1.4
- vimeo/psalm: ^4.0
Suggests
- blade-ui-kit/blade-heroicons: Required for the default icons used in this package
- livewire/livewire: Consider livewire for handling your form submissions
This package is auto-updated.
Last update: 2021-02-24 14:34:45 UTC
README
Laravel form components provides common form components to help build forms faster using Tailwind CSS. Supports validation, old form values, and wire:model.
Installation
You can install the package via composer:
composer require rawilk/laravel-form-components
You can publish the config file with:
php artisan fc:publish
Tip: You can also publish the package views by adding the --views
flag to the command:
php artisan fc:publish --views
You can view the default configuration here: https://github.com/rawilk/laravel-form-components/blob/master/config/form-components.php
Documentation
For more documentation, please visit: https://randallwilk.dev/docs/laravel-form-components
Testing
composer test
Changelog
Please see CHANGELOG for more information on what has changed recently.
Contributing
Please see CONTRIBUTING for details.
Security
Please review my security policy on how to report security vulnerabilities.
Credits
This package is also heavily inspired by Laravel Form Components and Blade UI Kit.
Alternatives
This package was created to satisfy my own needs and preferences, and relies on TailwindCSS, TailwindUI, and AlpineJS for styling and functionality. You can always try one of these alternatives if your needs differ:
License
The MIT License (MIT). Please see License File for more information.