diff --git a/README.md b/README.md index acae8a7..188729c 100644 --- a/README.md +++ b/README.md @@ -1,4 +1,13 @@ # chain-depict -受到 pug 和 tailwind, windicss 启发的, -使用纯粹 js 书写 UI +受到 pug 和 tailwind, windicss 启发的, +使用纯粹 js 书写 UI + +```javascript +import { div } form 'chain-depict' + +div.w(12).h(14).onclick.stop(click).onkeydown.esc(keydown)([ + div.w('auto').h(32).classList(['mdui-btn', 'mdui-btn-icon']), + div.w('auto').h(32).classList('mdui-btn mdui-btn-icon'), +]) +```