Zinc UI is A UI component library for Livewire , built with Tailwind CSS and Alpine.js.
You can find the documentation here.
Package Status: Alpha Stage
Since Zinc UI is in its Alpha version, you need to modify the composer.json file. Open the file and ensure the following lines are present:
{
"minimum-stability": "dev",
"prefer-stable": true
}
Run the following command to add Zinc UI to your project:
composer require arifbudimanar/zinc-ui
After installation, initialize the package by running:
php artisan zinc:install
To check the version of Zinc UI installed, run:
php artisan zinc:version
Generate a Livewire component by running:
php artisan make:livewire Home
Update the Home.php
file with this content:
#[Layout('layouts.sidebar-header')]
#[Title('Home')]
class Home extends Component
{
public function render()
{
return view('livewire.home');
}
}
Zinc UI includes several layouts tailored to different page types:
header
: For public pages like home and about.header-sidebar
: For user-facing pages like dashboards and profiles.without-header
: For authentication pages like login and register.sidebar
: For admin pages like admin dashboards.sidebar-header
: Another option for admin dashboards.
Open the web.php file and define a route for your component:
use App\Livewire\Home;
Route::get('/', Home::class);
Start the development server and compile the assets using:
composer run dev
Visit http://localhost:8000 to see Zinc UI in action.
composer test
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.