Shared components


README

Latest Version on Packagist Total Downloads

Shared Laravel View Components for Liberty Technologies

Requirements

You must have installed Tailwind 3.0

Installation

You can install the package via composer:

composer require liberty-technologies/components

Then, publish the configuration for Blade Icons, uncomment the default icon set, and create the resources/svg directory

php artisan vendor:publish --tag=blade-icons

Add the components directory to tailwind.config.js content array

"./vendor/liberty-technologies/components/resources/views/**/*.blade.php",

Optionally, you can publish the views using

php artisan vendor:publish --tag="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