ujnana/pinex
Composer 安装命令:
composer require ujnana/pinex
包简介
A beautiful, modern component library for Laravel Livewire applications with shadcn/ui inspired design and Tailwind CSS
关键字:
README 文档
README
A beautiful, modern component library for Laravel Livewire applications, styled with Tailwind CSS.
Features
- 🎨 Beautiful, customizable components
- ⚡ Built for Livewire 3
- 🎯 Tailwind CSS styling
- ♿ Accessible and responsive
- 🔧 Easy to customize
Requirements
- PHP 8.1+
- Laravel 11.0+
- Livewire 3.0+
- Tailwind CSS 4.0+
Installation
Install the package via Composer:
composer require ujnana/pinex
Tailwind CSS Configuration
For Tailwind CSS v4, update your CSS file (e.g., resources/css/app.css):
@import "tailwindcss"; @source "../../vendor/ujnana/pinex/src/Views";
Note: Tailwind CSS v4 uses CSS-based configuration. The traditional
tailwind.config.jsis optional. Visit Tailwind CSS v4 documentation for more details.
Available Components
- Button - Versatile button component with variants and states
- Modal - Accessible modal dialogs
- Input - Form input fields with validation
- Card - Content container cards
- Table - Data tables with shadcn/ui styling
Usage
Button Component
<livewire:pinex.button variant="primary" size="md"> Click Me </livewire:pinex.button> {{-- With icon and loading state --}} <livewire:pinex.button variant="success" icon="check" wire:loading.attr="disabled"> Save </livewire:pinex.button>
Available variants: primary, secondary, success, danger, warning
Available sizes: sm, md, lg
Modal Component
<livewire:pinex.modal name="my-modal" title="Modal Title"> <p>Modal content goes here...</p> <x-slot:footer> <livewire:pinex.button wire:click="$dispatch('close-modal', { name: 'my-modal' })"> Close </livewire:pinex.button> </x-slot:footer> </livewire:pinex.modal> {{-- Open modal from anywhere --}} <button wire:click="$dispatch('open-modal', { name: 'my-modal' })"> Open Modal </button>
Input Component
<livewire:pinex.input name="email" type="email" label="Email Address" placeholder="Enter your email" wire:model="email" required /> {{-- With error message --}} @error('email') <livewire:pinex.input name="email" label="Email" wire:model="email" error="{{ $message }}" /> @enderror
Card Component
<livewire:pinex.card> <x-slot:header> <h3>Card Title</h3> </x-slot:header> <p>Card content...</p> <x-slot:footer> <livewire:pinex.button variant="primary">Action</livewire:pinex.button> </x-slot:footer> </livewire:pinex.card>
Table Component
{{-- Basic Table --}} <livewire:pinex.table caption="User List"> <x-slot:header> <tr> <x-pinex::table-head>Name</x-pinex::table-head> <x-pinex::table-head>Email</x-pinex::table-head> <x-pinex::table-head>Role</x-pinex::table-head> </tr> </x-slot:header> <x-pinex::table-row> <x-pinex::table-cell>John Doe</x-pinex::table-cell> <x-pinex::table-cell>john@example.com</x-pinex::table-cell> <x-pinex::table-cell>Admin</x-pinex::table-cell> </x-pinex::table-row> <x-pinex::table-row> <x-pinex::table-cell>Jane Smith</x-pinex::table-cell> <x-pinex::table-cell>jane@example.com</x-pinex::table-cell> <x-pinex::table-cell>User</x-pinex::table-cell> </x-pinex::table-row> </livewire:pinex.table> {{-- Bordered Table with Footer --}} <livewire:pinex.table :bordered="true"> <x-slot:header> <tr> <x-pinex::table-head>Item</x-pinex::table-head> <x-pinex::table-head class="text-right">Price</x-pinex::table-head> </tr> </x-slot:header> <x-pinex::table-row> <x-pinex::table-cell>Product A</x-pinex::table-cell> <x-pinex::table-cell class="text-right">$100</x-pinex::table-cell> </x-pinex::table-row> <x-slot:footer> <tr> <th class="px-4 py-3 text-right font-bold">Total</th> <td class="px-4 py-3 text-right font-bold">$100</td> </tr> </x-slot:footer> </livewire:pinex.table>
Table props: size (sm, md, lg), bordered (true/false), hoverable (true/false), caption (optional)
Publishing Assets
Publish the configuration file:
php artisan vendor:publish --tag=pinex-config
Publish the views:
php artisan vendor:publish --tag=pinex-views
Configuration
After publishing, you can customize the default component styles in config/pinex.php:
return [ 'prefix' => 'pinex', 'defaults' => [ 'button' => [ 'variant' => 'primary', 'size' => 'md', ], // ... more defaults ], ];
Customization
Extending Views
After publishing views, you can customize any component template in resources/views/vendor/pinex/components/.
Custom Variants
You can add custom color variants by extending Tailwind's configuration and using them in your components.
License
The MIT License (MIT). Please see License File for more information.
ujnana/pinex 适用场景与选型建议
ujnana/pinex 是一款 基于 PHP 开发的 Composer 扩展包,目前已累计 1 次下载、GitHub Stars 达 0, 最近一次更新时间为 2025 年 11 月 30 日, 在 PHP 生态内属于活跃度较高的组件。
它主要适用于以下技术方向: 「ui」 「components」 「laravel」 「tailwind」 「tailwindcss」 「livewire」 等业务场景。在实际项目中,围绕这些方向常见需要落地的问题包括:接口对接、性能调优、并发安全、与既有框架(Laravel / ThinkPHP / Yii / Webman 等)的兼容适配,以及生产环境的日志埋点与稳定性保障。
我们在过去多个企业项目中使用过 ujnana/pinex 或与其功能相近的方案,如果你在选型或落地过程中遇到问题,例如 版本兼容、二次改造、私有化封装、与内部系统对接、生产 BUG 排查,欢迎联系我们协助评估。
基于 ujnana/pinex 在你已有业务上做功能扩展、字段裁剪、UI 适配、与内部账号 / 权限 / 日志系统的深度对接。
线上偶发问题、内存泄漏、慢查询、并发异常等排查修复;针对高流量场景做缓存、队列、索引层面的调优。
承接完整的项目从需求 → 设计 → 开发 → 上线 → 长期运维;也可按月提供技术保姆服务。
与 ujnana/pinex 相关的其它包
同方向 / 同关键字的高下载量 PHP Composer 包推荐,方便对比选型:
Provides a TailwindUI-based skin for the Winter CMS backend.
Web Font Loader gives you added control when using linked fonts via @font-face.
Asset for Tailwind for YiiFramework v.3.0.
Tailwind loader for Laravel Nova.
Ariadne Component Library: xml writer and parser Component
Minimal Laravel authentication scaffolding with Vue, Vite, Typescript and Tailwind.
统计信息
- 总下载量: 1
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 0
- 点击次数: 18
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: MIT
- 更新时间: 2025-11-30