acryldev/acryl--plugins-acryl-ui ↗★ 256

@acryl/ui

提供Web和桌面客户端的主题化UI组件库 适合需要使用标准构建块和插槽辅助工具开发客户端界面的开发者。

包名
@acryl/ui
兼容性
待验证
Harness 依赖范围
0.2.0-rc.2
Cordis 依赖范围
4.0.4
版本
0.3.0
许可证
MIT
最近更新
2026年10月8日

安装

$npx -p @deepseek-ai/dsh dsh plugin --profile web add github:acryldev/acryl#36202668b4175f2840ed4673cd8475ee37c1acfe&path:plugins/acryl-ui

@acryl/ui

ACRYL UI library for the Web and Desktop client (spec 038): themed building blocks over the app's own primitives, and slot helpers.

// in a client bundle whose package.json lists "@acryl/ui" in dsh.client.inject
const ui = require('@acryl/ui')
ui.footerAction(ctx, { id: 'my-panel' }, function Panel() {
  const [name, setName] = React.useState('')
  return React.createElement(ui.Card, { title: 'Settings' }, React.createElement(ui.Field, { label: 'Name', value: name, onChange: setName }))
})

Components and helpers are described in contracts/components.json (the single source: props, a11y, slots). npm test checks that the exports match the contract. The client loader treats every module as a plugin, so this library also exports an empty apply.

Status: skeleton. Stack, Card, Field, SwitchField, EmptyState; footerAction, headerAction, sidebarTab. Not yet wired into every surface's composition (task T011b).