复选框组件 .
安装
npm install @fluid-topics/ft-checkbox
yarn add @fluid-topics/ft-checkbox
使用量
import {html} from "lit"
import "@fluid-topics/ft-checkbox"
function render() {
return html`
<ft-checkbox name="form-name" checked
@change=${(e: CustomEvent) => console.log("ft-checkbox change to :", e.detail)} >
Check me
</ft-checkbox>`
}