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
| Prop | Type | Default | Description |
|---|---|---|---|
label | string | "" | Visible label. |
placeholder | string | "" | Hint shown while the field is empty. |
type | 'text' | 'email' | 'password' | 'search' | 'tel' | 'url' | 'number' | "text" | Native input type. |
disabled | boolean | false | Disables the field. |
name | string | — | Form field name. |
modelValue | string | "" | Field text. |
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: string] | v-model update. |