pajak/ui

A UI component library for Laravel

Maintainers

Package info

github.com/patrikjak/pajak-ui

Language:TypeScript

pkg:composer/pajak/ui

Statistics

Installs: 2

Dependents: 0

Suggesters: 0

Stars: 0

Open Issues: 1

v0.1.0 2026-05-18 20:00 UTC

This package is auto-updated.

Last update: 2026-05-18 20:40:32 UTC


README

PHP Version Laravel Node Version License

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

License

MIT