Skip to content

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 ​

PropTypeDefaultDescription
disabledbooleanfalseDisables the checkbox.
namestring—Form field name.
valuestring"on"Value submitted with the form when checked.
modelValuebooleanfalseWhether the box is ticked.

Other HTML attributes (id, class, aria-*, data-*…) fall through to the component’s element and are type-checked.

Events ​

EventPayloadDescription
update:modelValue[value: boolean]v-model update.

Slots ​

SlotPropsDescription
defaultanyLabel text.