arifbudimanar / zinc-ui
Zinc UI is a laravel blade component that work with livewire.
Fund package maintenance!
ArifBudimanAr
Installs: 192
Dependents: 0
Suggesters: 0
Security: 0
Stars: 39
Watchers: 2
Forks: 1
Open Issues: 0
Language:Blade
Requires
- php: ^8.4
- illuminate/contracts: ^10.0||^11.0||^12.0
- livewire/livewire: ^3.5
- masmerise/livewire-toaster: ^2.6
- spatie/laravel-package-tools: ^1.16
Requires (Dev)
- larastan/larastan: ^2.9
- laravel/pint: ^1.14
- nunomaduro/collision: ^8.1.1||^7.10.0
- orchestra/testbench: ^9.0.0||^8.22.0
- pestphp/pest: ^3.0
- pestphp/pest-plugin-arch: ^3.0
- pestphp/pest-plugin-laravel: ^3.0
- phpstan/extension-installer: ^1.3
- phpstan/phpstan-deprecation-rules: ^1.1
- phpstan/phpstan-phpunit: ^1.3
- dev-main
- v0.1-alpha.91
- v0.1-alpha.90
- v0.1-alpha.89
- v0.1-alpha.88
- v0.1-alpha.87
- v0.1-alpha.86
- v0.1-alpha.85
- v0.1-alpha.84
- v0.1-alpha.83
- v0.1-alpha.82
- v0.1-alpha.81
- v0.1-alpha.80
- v0.1-alpha.79
- v0.1-alpha.78
- v0.1-alpha.77
- v0.1-alpha.76
- v0.1-alpha.75
- v0.1-alpha.74
- v0.1-alpha.73
- v0.1-alpha.72
- v0.1-alpha.71
- v0.1-alpha.70
- v0.1-alpha.69
- v0.1-alpha.68
- v0.1-alpha.67
- v0.1-alpha.66
- v0.1-alpha.65
- v0.1-alpha.64
- v0.1-alpha.63
- v0.1-alpha.62
- v0.1-alpha.61
- v0.1-alpha.60
- v0.1-alpha.59
- v0.1-alpha.58
- v0.1-alpha.57
- v0.1-alpha.56
- v0.1-alpha.55
- v0.1-alpha.54
- v0.1-alpha.53
- v0.1-alpha.52
- v0.1-alpha.51
- v0.1-alpha.50
- v0.1-alpha.49
- v0.1-alpha.48
- v0.1-alpha.47
- v0.1-alpha.46
- v0.1-alpha.45
- v0.1-alpha.44
- v0.1-alpha.43
- v0.1-alpha.42
- v0.1-alpha.41
- v0.1-alpha.40
- v0.1-alpha.39
- v0.1-alpha.38
- v0.1-alpha.37
- v0.1-alpha.36
- v0.1-alpha.35
- v0.1-alpha.34
- v0.1-alpha.33
- v0.1-alpha.32
- v0.1-alpha.31
- v0.1-alpha.30
- v0.1-alpha.29
- v0.1-alpha.28
- v0.1-alpha.27
- v0.1-alpha.26
- v0.1-alpha.25
- v0.1-alpha.24
- v0.1-alpha.23
- v0.1-alpha.22
- v0.1-alpha.21
- v0.1-alpha.20
- v0.1-alpha.19
- v0.1-alpha.18
- v0.1-alpha.17
- v0.1-alpha.16
- v0.1-alpha.15
- v0.1-alpha.14
- v0.1-alpha13
- v0.1-alpha.12
- v0.1-alpha.11
- v0.1-alpha.10
- v0.1-alpha.9
- v0.1-alpha.8
- v0.1-alpha.7
- v0.1-alpha.6
- v0.1-alpha.5
- v0.1-alpha.4
- v0.1-alpha.3
- v0.1-alpha.2
- v0.1-alpha.1
This package is auto-updated.
Last update: 2025-03-10 16:08:20 UTC
README
Introduction
Zinc UI is A UI component library for Livewire , built with Tailwind CSS and Alpine.js.
Documentation
You can find the documentation here.
Installation
Package Status: Alpha Stage
Configure composer.json
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" }
Install Zinc UI
Run the following command to add Zinc UI to your project:
composer require arifbudimanar/zinc-ui
Set up Zinc UI
After installation, initialize the package by running:
php artisan zinc:install
Check installed version
To check the version of Zinc UI installed, run:
php artisan zinc:version
Create a Livewire Component
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'); } }
Layout Options
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.
Update routes
Open the web.php file and define a route for your component:
use App\Livewire\Home; Route::get('/', Home::class);
Run the application
Start the development server and compile the assets using:
composer run dev
Visit http://localhost:8000 to see Zinc UI in action.
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.