Skip to content

Input

Text input with sizes, invalid/readonly/disabled states, and form events.

Usage

vue
<script setup>
import { ref } from "vue";
import { ArchInput } from "@archora/ui";

const email = ref("");
</script>

<template>
  <ArchInput v-model="email" type="email" placeholder="team@example.com" />
</template>

Live sandbox

Input can be tested directly on this page.

interactive
<ArchInput v-model="value" placeholder="Type here" />

Props

PropTypeDefaultDescription
modelValuestring | number""v-model value.
type"email" | "number" | "password" | "search" | "tel" | "text" | "url""text"HTML type or field type.
size"sm" | "md" | "lg""md"Size.
placeholderstring-Placeholder.
namestring-Field name.
autocompletestring-Autocomplete.
disabledbooleanfalseDisables the component.
readonlybooleanfalseRead-only state.
requiredbooleanfalseMarks the field as required.
invalidbooleanfalseInvalid state.
ariaLabelstring-aria-label.
ariaLabelledbystring-aria-labelledby.
ariaDescribedbystring-aria-describedby.

Events

EventPayloadDescription
update:modelValuevalue: stringmodelValue change.
inputevent: EventComponent event.
changeevent: EventValue change.
blurevent: FocusEventComponent event.
focusevent: FocusEventComponent event.