Skip to content

MInput <m-input> ​

A text field that kicks up a puff of dust from the caret on every key. Extra attributes go to the native input.

Demo source
vue
<script setup lang="ts">
import { ref } from 'vue';
import { MInput } from 'vue-manga-ui';

const name = ref('');
</script>

<template>
  <MInput v-model="name" label="Name" placeholder="Type something" autocomplete="off" />
</template>

Props ​

PropTypeDefaultDescription
labelstring""Visible label.
placeholderstring""Hint shown while the field is empty.
type'text' | 'email' | 'password' | 'search' | 'tel' | 'url' | 'number'"text"Native input type.
disabledbooleanfalseDisables the field.
namestring—Form field name.
modelValuestring""Field text.

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

Events ​

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