tavp/tavpblocks
Composer 安装命令:
composer require tavp/tavpblocks
包简介
TAVPblocks — 40+ ready-made Tailwind + Alpine UI components for TAVP.
README 文档
README
Library komponen UI untuk TAVP, dibangun dengan Tailwind + Alpine + Volt. Target: 40+ komponen jadi yang tinggal dipakai.
Components
Phase 1 (0.2.0) — 15 basic components
| Component | Description |
|---|---|
x-button |
Buttons with variants (primary, secondary, danger, ghost) |
x-input |
Text inputs with labels, errors, hints |
x-select |
Dropdown selects |
x-textarea |
Multi-line text inputs |
x-toggle |
On/off switches |
x-modal |
Dialog overlays |
x-dropdown |
Dropdown menus |
x-toast |
Notification popups |
x-card |
Content cards |
x-badge |
Status indicators |
x-avatar |
User avatars |
x-datatable |
Data tables with sorting |
x-pagination |
Page navigation |
x-alert |
Alert messages |
x-skeleton |
Loading placeholders |
Phase 2 (0.4.0) — 25+ more components
tabs, accordion, file-upload, rich-editor, date-picker, chart, stat-card, form-group, confirm-dialog, loading-spinner, breadcrumb, tooltip, progress-bar, stepper, timeline, and more.
Requirements
- PHP 8.3+
- Phalcon 5.16+
- tavp-core
Install
# Via tavp CLI tavp module:install tavp/tavpblocks # Via Composer composer require tavp/tavpblocks
Usage
<!-- In your Volt template --> {{ button('Click me', ['variant' => 'primary']) }} {{ input('name', ['label' => 'Your Name', 'required' => true]) }} {{ modal('confirm-delete', 'Are you sure?') }}
Styling
All components use Tailwind CSS classes. Customization via CSS variables:
--btn-primary: #3b82f6; --btn-radius: 0.5rem; --input-border: #d1d5db;
Testing
composer test
Status
Part of 0.1.0 Genesis (ZeroVer 0.MINOR.PATCH). 15 basic components.
Full 40+ in 0.4.0.
License
MIT
统计信息
- 总下载量: 0
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 0
- 点击次数: 2
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: MIT
- 更新时间: 2026-07-09