xeact 示例组件库
- 构建
yarn build
- 在 HTML 中引用
<link href="../xeact-components/dist/index.css" rel="stylesheet"/>
<script src="../xeact-components/dist/index.js"></script>
- 使用
<x-root class="content">
<x-sample id="sample" say="hi">
I am inside <x-sample>
</x-sample>
<button class="btn btn-sm btn-secondary" id="change">Say Something</button>
</x-root>