vesperabr/laravel-components

A set of useful Laravel components

1.0.0 2021-10-01 11:45 UTC

This package is auto-updated.

Last update: 2024-05-29 05:09:09 UTC


README

The vesperabr/laravel-components package add a set of useful components to your Laravel app.

Installation

You can install the package via composer:

$ composer require vesperabr/laravel-components

The package will automatically register itself.

Components

Form

<x-form>
    ...
</x-form>

Attributes

Name Default Notes
method POST
multipart If present, control the form enctype to support file uploads
bind Define the values that will be binded
bag default Define the error bag name

Input

<x-input label="Nome" name="nome" required />
Name Default Notes
label
type text
name
id name attribute (if present)
prepend
append
show-errors If present, show the validation errors
bag Define the error bag name
bind Override the bind values for the current input
value If provided, it will take precedence over the binded value

Label

<x-label required>
    Nome
</x-label>

Attributes

Name Default Options Notes
required If present, show an * after the text

Contributing

Please see CONTRIBUTING for details.

Credits

License

The MIT License (MIT). Please see License File for more information.