0de9b6e66e
- core/table-core: Headless 表格内核(排序/筛选/分页/选择插件 + 冒烟 9 项) - core/frame: signal/computed/effect + hyperscript 微框架(零依赖) - skin/ui: 16 个 DOM 组件(含自绘 select、滑动指示条 tabs、行选择 dataTable、form 表单校验) - design/tokens: --ua-* 设计令牌(light/dark) - tools/cli: ua 命令行(index/list/info/docs/style/mcp)+ MCP 注册表服务 - apps: demo 演示站(esbuild 单文件)+ docs 双轨文档(人类版 + llms-full.txt)
13 lines
364 B
TypeScript
13 lines
364 B
TypeScript
import { h } from '@ui-arch/frame';
|
|
import type { CardProps } from './types.js';
|
|
|
|
/*** 卡片容器:可选标题 + 任意子内容 ***/
|
|
export function card(props: CardProps, ...children: unknown[]): HTMLElement {
|
|
return h(
|
|
'div',
|
|
{ class: 'ua-card' },
|
|
props.title ? h('h3', { class: 'ua-card-title' }, props.title) : null,
|
|
...children,
|
|
);
|
|
}
|