You can install the package via composer:
composer require patressz/laravel-blade-components
You can publish the config file with:
php artisan vendor:publish --tag="blade-components-config"
Optionally, you can publish the views using
php artisan vendor:publish --tag="blade-components-views"
To use the components, follow the standard Blade Component syntax. By default, all form components come with the form
prefix.
Optionally, you can change the prefix of the components by publishing the configuration file and then changing the value of the form
key to something else.
<x-form::input />
Attributes:
- variable (required)
- type (default:
text
) - label (default:
null
) - placeholder (uses
label
if not set) - value (default:
null
) - required (default:
false
) - disabled (default:
false
)
Example:
<x-form::input
variable="username"
label="Username"
placeholder="Enter your username"
:required="true"
/>
composer test
Please see CHANGELOG for more information on what has changed recently.
Please see CONTRIBUTING for details.
Please review our security policy on how to report security vulnerabilities.
The MIT License (MIT). Please see License File for more information.