自行管理开关状态,并以 aria-pressed 表示是否选中的双态按钮。
lr-toggle
import '@aceshooting/lyra-ui/components/lr-toggle.js';
阅读指南(英文)