Search by

Shared components

Package info

github.com/liberty-technologies/components

Language:Blade

pkg:composer/liberty-technologies/components

Fund package maintenance!

liberty-technologies

Statistics

Installs: 266

Dependents: 0

Suggesters: 0

Stars: 1

Open Issues: 5

2.2.0 2026-10-24 16:12 UTC

README

Latest Version on Packagist Total Downloads

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

Alt text Alt text

Variables

  • object for it will check the delete policy.
  • route the 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