etaf-ui/README.md
Kinneyzhang 4497121162 feat(ui): add official component catalog
Provide the optional official Component catalog with controlled Button, Checkbox, Label, Panel, and DataGrid implementations plus public-path tests and bilingual usage documentation.
2026-08-05 06:59:22 +08:00

17 lines
589 B
Markdown

# etaf-ui
`etaf-ui` is the official ETAF Component catalog. It is a normal optional package above `etaf`; it does not add a second Control or Widget model. Button, Checkbox, Label, Panel, and DataGrid are all ordinary Components with the same View, props, slots, events, and Data contracts.
```elisp
(require 'etaf-ui)
(let ((done (etaf-ref nil)))
(etaf-view
(etaf-checkbox
:checked (etaf-value done)
:label "Done"
:on-change (lambda (next) (setf (etaf-value done) next)))))
```
Run `make check EMACS=/Applications/Emacs.app/Contents/MacOS/Emacs` from this directory.