pajak / ui
A UI component library for Laravel
Requires
- php: ^8.5
- blade-ui-kit/blade-heroicons: ^2.0
- blade-ui-kit/blade-icons: ^1.0
- laravel/framework: ^13.0
Requires (Dev)
- orchestra/testbench: ^11.0
- phpstan/phpstan: ^2.1
- phpunit/phpunit: ^13.0
- slevomat/coding-standard: ^8.14
- spatie/phpunit-snapshot-assertions: ^5.1
- squizlabs/php_codesniffer: ^4.0
This package is auto-updated.
Last update: 2026-05-18 20:40:32 UTC
README
PAJAK UI is a Laravel package providing reusable Blade components for common UI patterns, along with accompanying frontend assets (SCSS, TypeScript) built with Vite. It is designed to be installed into Laravel projects via Composer, offering a consistent and customizable UI foundation.
Live component previews and usage examples are available at design.pajak.sk.
Requirements
- PHP 8.5+
- Laravel 13+
Installation
composer require pajak/ui
The service provider is auto-discovered. Run the install command to publish the config and assets:
php artisan install:pajak-ui
Asset Inclusion
Pre-built assets are published to public/vendor/pajak/ui/ during installation — no build step required.
From source (recommended for production, granular inclusion): publish the SCSS/TS sources and import only what you need in your own Vite config:
php artisan vendor:publish --tag=pajak-ui-sources
// Import only what you need @use 'vendor/pajak/ui/css/form/form-standalone'; @use 'vendor/pajak/ui/css/button/index';
Documentation
Component reference lives in docs/:
| File | Contents |
|---|---|
docs/form.md |
Form components — field, input, password, email, number, tel, url, textarea, select, toggle, checkbox, radio, radio-card, file, dropzone, slider, repeater, section, group, hidden, avatar |
docs/button.md |
Button component — props, Blade usage |
docs/calendar.md |
Calendar / date-picker component — props, Blade usage, JS API |
docs/toast.md |
Toast notification system — JS API, asset inclusion |
docs/http.md |
HTTP connector — JS API for AJAX form submission |
docs/dark-mode.md |
Dark mode support — configuration and usage |