marshmallow / components
Extendend Laravel Blade Components for Marshmallow
Package info
github.com/marshmallow-packages/components
Language:Blade
pkg:composer/marshmallow/components
Fund package maintenance!
Requires
- php: ^8.0
- illuminate/contracts: ^8.0|^9.0|^10.0|^11.0|^12.0|^13.0
Requires (Dev)
- phpunit/phpunit: ^9.3|^10.5|^11.5
README
Extended Laravel Blade Components for Marshmallow
A collection of reusable Blade components for Laravel by Marshmallow — form fields, navigation elements and a few product/UI helpers, all registered under the mm- prefix.
Installation
Install the package via Composer:
composer require marshmallow/components
The package is auto-discovered, so there is nothing else to register. The components become available immediately.
Optionally, publish the views to your application so you can customise the markup:
php artisan vendor:publish --provider="Marshmallow\Components\ComponentsServiceProvider" --tag="marshmallow-views"
Published views are written to resources/views/vendor/marshmallow.
Usage
Every component is registered with the mm- prefix and can be used directly in your Blade templates:
<x-mm-button href="/checkout">Continue</x-mm-button> <x-mm-input name="email" type="email" /> <x-mm-errors />
Available components
Form fields
mm-button, mm-checkbox, mm-default-authentication-card, mm-default-input,
mm-divider, mm-email, mm-error, mm-errors, mm-image-modal, mm-input,
mm-label, mm-link, mm-list-image, mm-number, mm-outline-button,
mm-password, mm-radio, mm-secondary-button, mm-select, mm-textarea,
mm-tooltip-label, mm-tooltip, mm-usp-fontawesome, mm-white-button,
mm-wysiwyg.
Navigation
mm-navigation.cart, mm-navigation.dropdown-link, mm-navigation.dropdown,
mm-navigation.link, mm-navigation.responsive-nav-link.
Products
mm-product.image.
You can inspect or override any of these by publishing the views (see Installation) and editing the files in resources/views/vendor/marshmallow/components.
Testing
composer test-coverage
Changelog
Please see CHANGELOG for more information on what has changed recently.
Contributing
Please see CONTRIBUTING for details.
Security Vulnerabilities
Please review our security policy on how to report security vulnerabilities.
Credits
License
The MIT License (MIT). Please see License File for more information.