Input
The Input component can be used for collecting information from the user.
Usage
Use the label option to provide a label to the input field.
<script setup>
import { MbscInput } from '@mobiscroll/vue';
</script>
<template>
<MbscInput label="Label" />
</template>
Value binding
Use the v-model directive to create a two-way binding.
<script setup>
import { ref } from 'vue';
import { MbscInput } from '@mobiscroll/vue';
const value = ref('');
</script>
<template>
<MbscInput v-model="value" label="Label" />
Input value: {{ value }}
</template>
Options
Explore the following API options that help you easily configure the Input component.
cssClass
string
Specifies a custom CSS class for the component.
Default value: undefined
disabled
boolean
Specifies the disabled state of the input.
Default value: false
endIcon
string
Specifies the icon which will be displayed at the end of the input. Use the startIcon option for specifying an icon at the start.
Default value: undefined