Forms

SearchField

Search input with v-model support. Wraps the Polaris <s-search-field> web component.

Usage

<script setup>
const query = ref('')
</script>

<template>
  <ShSearchField v-model="query" label="Search products" placeholder="Search…" />
</template>

Props

PropTypeDefaultDescription
modelValuestring—Bound value (use with v-model)
labelstring—Input label
maxLengthnumber—Maximum character length
minLengthnumber—Minimum character length
placeholderstring—Placeholder text
errorstring—Error message
detailsstring—Help text below the input
autocompletestring—Autocomplete attribute
defaultValuestring—Default value (uncontrolled)
labelAccessibilityVisibility'visible' | 'exclusive'—Label visibility for assistive tech
readOnlyboolean—Makes the field read-only
requiredboolean—Marks the field as required
disabledboolean—Disables the field
idstring—Element ID
namestring—Form field name

Events

EventPayloadDescription
update:modelValuestringEmitted when value changes (v-model)
inputInputEventNative input event
changeInputEventNative change event
focusInputEventEmitted on focus
blurInputEventEmitted on blur

Slots

SlotDescription
defaultAdditional content

Polaris Element

Renders as <s-search-field>. See Polaris SearchField docs.

© 2026 KiriminAja. Polaris and Shopify are trademarks of Shopify Inc.

KiriminAja not affiliated with Shopify.