Offer a bunch of components for modern web.
You can install the package via composer:
composer require omnia-digital/library
Publish the package scripts:
php artisan vendor:publish --tag="library-assets"
Include the assets
<html>
<head>
...
@libraryStyles
</head>
<body>
...
@libraryScripts
</body>
</html>
Config Tailwind CSS for all components in tailwind.config.js
:
module.exports = {
content: [
...
'./vendor/omnia-digital/library/resources/views/**/*.blade.php',
]
};
You can publish the config file with:
php artisan vendor:publish --tag="library-config"
Optionally, you can publish the views using
php artisan vendor:publish --tag="library-views"
This package uses focus and collapse plugins for improving UI/UX. Consider adding it in your resources/js/app.js
:
import Alpine from 'alpinejs';
import focus from '@alpinejs/focus';
import collapse from '@alpinejs/collapse';
Alpine.plugin(focus)
Alpine.plugin(collapse)
window.Alpine = Alpine;
Alpine.start();
...
To use the Media Manager component, you need to install this package first: https://github.com/omnia-digital/media-manager
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.