symfinity/ux-blocks-core 问题修复 & 功能扩展

解决BUG、新增功能、兼容多环境部署,快速响应你的开发需求

邮箱:yvsm@zunyunkeji.com | QQ:316430983 | 微信:yvsm316

symfinity/ux-blocks-core

Composer 安装命令:

composer require symfinity/ux-blocks-core

包简介

Symfinity UX Blocks Core — atomic Symfony UX Twig components with registry-aligned markup and role CSS

README 文档

README

UX Blocks Core

Atomic Symfony UX Twig components with registry-aligned markup and role CSS

PHP Version Symfony
CI
Release Downloads License

Note

Read-only mirror. See CONTRIBUTING.md for how to propose changes.

Features

  • 24 atomic roles — typography, forms, layout, feedback, and media primitives
  • Native-first (nat) — styled with ui-kernel tokens; no Stimulus required for default stories
  • Registry-alignedconfig/ux_roles.yaml revision 1.4 with blocks.* fragment ids
  • Symfony UX Twig components<twig:Button>, <twig:Input>, and siblings
  • Package role CSS — tier-owned styles under assets/styles/roles/
  • Flex recipe — bundle + AssetMapper paths wired on install

Interaction profile

Token In this package
nat Default for all roles — native HTML + Chameleon kernel / package CSS
act Optional on Button via ui-action protocol
stl Not used — interactive overlays live in symfinity/ux-blocks-extended
live Not used — LiveComponent demos live in lab / consumer apps

Component inventory

Role Twig Category Interaction Fragment Status
typography Typography Typography nat blocks.typography shipped
button Button Actions nat, act blocks.button shipped
label Label Forms nat blocks.label shipped
input Input Forms nat blocks.input shipped
textarea Textarea Forms nat blocks.textarea shipped
checkbox Checkbox Forms nat blocks.checkbox shipped
radio-group RadioGroup Forms nat blocks.radio-group shipped
select Select Forms nat blocks.select shipped
switch Switch Forms nat blocks.switch shipped
file-input FileInput Forms nat blocks.file-input shipped
separator Separator Layout nat blocks.separator shipped
divider Divider Layout nat blocks.divider shipped
aspect-ratio AspectRatio Layout nat blocks.aspect-ratio shipped
scroll-area ScrollArea Layout nat blocks.scroll-area shipped
badge Badge Feedback nat blocks.badge shipped
progress Progress Feedback nat blocks.progress shipped
spinner Spinner Feedback nat blocks.spinner shipped
skeleton Skeleton Feedback nat blocks.skeleton shipped
empty Empty Feedback nat blocks.empty shipped
avatar Avatar Media nat blocks.avatar shipped
image Image Media nat blocks.image shipped
figure Figure Media nat blocks.figure shipped
kbd Kbd Typography nat blocks.kbd shipped
link Link Navigation nat blocks.link shipped

Handbook pages: docs/components.md and docs/components/.

Prerequisites

Add the symfinity/recipes Flex endpoint to your project's composer.json (see recipes README) — recipes are not in Symfony's official recipe repository yet.

Install ui-kernel (theme CSS). ux-blocks (registry SDK) resolves from Packagist as a dependency of this package.

composer require symfinity/ui-kernel

Installation

composer require symfinity/ux-blocks-core

The Flex recipe registers the bundle for all environments. See Installation.

Quick Start

{# templates/base.html.twig — ui-kernel head (required) #}
<head>
    {{ ui_kernel_theme_boot_script() }}
    {{ ui_kernel_css()|raw }}
</head>
{# templates/demo.html.twig #}
<twig:Button variant="default">Save</twig:Button>
<twig:Label for="email">Email</twig:Label>
<twig:Input id="email" name="email" type="email" placeholder="you@example.com" />

See Quick start for the full walkthrough.

Documentation

Requirements

  • PHP 8.2 or higher
  • Symfony 7.4 or 8.x
  • symfinity/ui-kernel ^0.1 and symfinity/ux-blocks ^0.1 (Packagist)

Support

License

MIT

统计信息

  • 总下载量: 0
  • 月度下载量: 0
  • 日度下载量: 0
  • 收藏数: 0
  • 点击次数: 2
  • 依赖项目数: 0
  • 推荐数: 0

GitHub 信息

  • Stars: 0
  • Watchers: 0
  • Forks: 0
  • 开发语言: PHP

其他信息

  • 授权协议: MIT
  • 更新时间: 2026-06-13

承接程序开发

PHP开发

VUE

Vue开发

前端开发

小程序开发

公众号开发

系统定制

数据库设计

云部署

网站建设

安全加固