pixeldev/uxmodal-bundle
Composer 安装命令:
composer require pixeldev/uxmodal-bundle
包简介
A Ux Modal bundle for Twig width Tailwind CSS and Alpine JS
README 文档
README
Presentation
A modal component with Tailwind and Alpine JS for Twig from the Penguin UI site : https://www.penguinui.com/components/modal
Requirements
- PHP >= 8.0
- Twig >= 2.7
- Tailwind CSS >= 3.4
- Alpine JS >= 3
- Composer
Installation
Install the bundle
Execute the following composer command to add the bundle to the dependencies of your project:
composer require pixeldev/uxmodal-bundle
Enable the bundle
Enable the bundle by adding it to the list of registered bundles in the config/bundles.php file of your project:
return [ /* ... */ Pixel\UxModalBundle\UxModalBundle::class => ['all' => true], ];
Install Tailwind CSS and Alpine JS
See this documentation : https://www.penguinui.com/docs/getting-started
Add bundle directory for Tailwind compilation
Open tailwind.config.js and add the following line to the content table
'./vendor/pixeldev/uxmodal-bundle/src/Resources/views/**/*.html.twig'
Use
General use
Here's an example of how to add a modal to your site:
{% embed '@UxModal/modal.html.twig' with {isFooterModal: true} %}
{# Label for this button #}
{% block buttonLabel %}Open Modal{% endblock %}
{# Title for Modal #}
{% block titleModal %}Title Modal{% endblock %}
{# Body text for Modal #}
{% block bodyModal %}
Body text description
{% endblock %}
{# Add a button on a footer Modal #}
{% block footerModal %}
<button @click="modalIsOpen = false" type="button"
class="{{ primaryButtonClass }} bg-black text-white hover:bg-primary-dark">
Purchase
</button>
{% endblock %}
{% endembed %}
Configurations
Todo
pixeldev/uxmodal-bundle 适用场景与选型建议
pixeldev/uxmodal-bundle 是一款 基于 Twig 开发的 Composer 扩展包,目前已累计 38 次下载、GitHub Stars 达 0, 最近一次更新时间为 2024 年 11 月 24 日, 在 PHP 生态内属于活跃度较高的组件。
我们在过去多个企业项目中使用过 pixeldev/uxmodal-bundle 或与其功能相近的方案,如果你在选型或落地过程中遇到问题,例如 版本兼容、二次改造、私有化封装、与内部系统对接、生产 BUG 排查,欢迎联系我们协助评估。
基于 pixeldev/uxmodal-bundle 在你已有业务上做功能扩展、字段裁剪、UI 适配、与内部账号 / 权限 / 日志系统的深度对接。
线上偶发问题、内存泄漏、慢查询、并发异常等排查修复;针对高流量场景做缓存、队列、索引层面的调优。
承接完整的项目从需求 → 设计 → 开发 → 上线 → 长期运维;也可按月提供技术保姆服务。
统计信息
- 总下载量: 38
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 0
- 点击次数: 13
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: MIT
- 更新时间: 2024-11-24