liberty-technologies / components
Shared components
Package info
github.com/liberty-technologies/components
Language:Blade
pkg:composer/liberty-technologies/components
Fund package maintenance!
Requires
- php: ^8.2
- blade-ui-kit/blade-heroicons: ^2.7
- blade-ui-kit/blade-icons: ^1.8
- gehrisandro/tailwind-merge-laravel: ^1.3
- illuminate/contracts: ^12.0|^13.0
- spatie/laravel-package-tools: ^1.19
Requires (Dev)
- larastan/larastan: ^3.1
- laravel/pao: ^1.0
- laravel/pint: ^1.14
- nunomaduro/collision: ^8.8
- orchestra/testbench: ^10.0|^11.0
- pestphp/pest: ^4.0
- pestphp/pest-plugin-arch: ^4.0
- pestphp/pest-plugin-laravel: ^4.1
- phpstan/extension-installer: ^1.4
- phpstan/phpstan-deprecation-rules: ^2.0
- phpstan/phpstan-phpunit: ^2.0
- roave/security-advisories: dev-latest
- spatie/laravel-ray: ^1.35
Suggests
None
Provides
None
Conflicts
None
Replaces
None
README
Shared Laravel View Components for Liberty Technologies
Requirements
- Laravel 12 or 13
- Tailwind CSS 4
- Alpine.js, for the interactive components (delete button, collapse button, header, sidebar)
Installation
You can install the package via composer:
composer require liberty-technologies/components
Heroicons are installed with the package, so the built-in icons work out of the box.
Add the components directory as a source in your resources/css/app.css, and define the primary, info, success and danger color scales (50 to 950) the components use:
@import "tailwindcss"; @source "../../vendor/liberty-technologies/components/resources/views/**/*.blade.php"; @theme { --color-primary-50: oklch(0.967 0.016 12.89); /* ... through --color-primary-950, and the same for info, success and danger */ }
To use your own SVG icons in the sidebar items, publish the configuration for Blade Icons, uncomment the default icon set, and create the resources/svg directory
php artisan vendor:publish --tag=blade-icons
The footer displays config('app.owner'), so add an owner key to your config/app.php.
To use the favicon component, you must publish the assets
php artisan vendor:publish --tag=lt-components-assets
We recommend adding this command to your update script to keep the favicons up to date.
Optionally, you can publish the views using
php artisan vendor:publish --tag=lt-components-views
Usage
Buttons
Delete
Displays a delete button and asks for confirmation when clicked
Variables
objectfor it will check thedeletepolicy.routethe given route to redirect after confirmation
<x-lt-components::buttons.delete :object="$splitter" :route="route('splitters.destroy', $splitter)" />
Testing
composer test
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.
TODO
Add to Readme
Buttons
- Delete
- Collapse
- Primary
- Submit
Card
- Card
Description List
- List
- Item
Header
- Header
- Dropdown
- Dropdown Item
Inputs
- Text
- Label
- Error
Links
- Create
- Edit
- Info
- Internal
- External
- Text
- View
Sidebar
- Sidebar
- Title
- Item
Table
- Table
- Table Row
- Table Cell Header
- Table Cell
Misc
- Errors
- Footer
- Spinner
- Widget
- Favicons

