MCheckbox <m-checkbox>
A checkbox that slashes: two crescents swing round the box, crystals fly, the tick draws itself and ズザッ lands in dotted letters. A native checkbox underneath keeps forms and keyboard working.
Demo source
vue
<script setup lang="ts">
import { ref } from 'vue';
import { MCheckbox } from 'vue-manga-ui';
const remember = ref(false);
</script>
<template>
<MCheckbox v-model="remember" name="remember">Remember me</MCheckbox>
</template>Props
| Prop | Type | Default | Description |
|---|---|---|---|
disabled | boolean | false | Disables the checkbox. |
name | string | — | Form field name. |
value | string | "on" | Value submitted with the form when checked. |
modelValue | boolean | false | Whether the box is ticked. |
Other HTML attributes (id, class, aria-*, data-*…) fall through to the component’s element and are type-checked.
Events
| Event | Payload | Description |
|---|---|---|
update:modelValue | [value: boolean] | v-model update. |
Slots
| Slot | Props | Description |
|---|---|---|
default | any | Label text. |