Skip to content

Search Input

Search field with a clear button and exposed focus() method.

Usage

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

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

<template>
  <ArchSearchInput v-model="query" placeholder="Search modules" />
</template>

Live sandbox

Search Input can be tested directly on this page.

interactive
<SearchInput />

Props

PropTypeDefaultDescription
modelValuestring""v-model value.
placeholderstring""Placeholder.
disabledbooleanfalseDisables the component.
labelstring"Search"Accessible label or text.

Events

EventPayloadDescription
update:modelValuevalue: stringmodelValue change.