类型:组件 · 分类:复选框 · 收录:2026-09-19 · 源码:会员可见
<input type="checkbox" id="checkboxInput">
<label for="checkboxInput" class="bookmark">
<svg xmlns="http://www.w3.org/2000/svg" height="1em" viewBox="0 0 384 512" class="svgIcon"><path d="M0 48V487.7C0 501.1 10.9 512 24.3 512c5 0 9.9-1.5 14-4.4L192 400 345.7 507.6c4.1 2.9 9 4.4 14 4.4c13.4 0 24.3-10.9 24.3-24.3V48c0-26.5-21.5-48-48-48H48C21.5 0 0 21.5 0 48z"></path></svg>
</label>
<style>
/* From Uiverse.io by vinodjangid07 - Tags: checkbox, save, click effect, bookmark */
.bookmark {
position: relative;
cursor: pointer;
display: flex;
align-items: center;
justify-content: center;
}
#checkboxInput {
display: none;
}
.svgIcon {
height: 30px;
}
.svgIcon path {
fill: rgb(153, 153, 153);
}
.bookmark::before {
content: "