Forms

DatePicker

Date picker with v-model support. Wraps the Polaris <s-date-picker> web component.

Usage

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

<template>
  <ShDatePicker v-model="date" type="single" />
</template>

Props

PropTypeDefaultDescription
modelValuestringBound value (use with v-model)
type'single' | 'range'Selection type
defaultViewstringDefault calendar view
viewstringCurrent calendar view
allowstringAllowed date range
disallowstringDisallowed date range
allowDaysstringAllowed days of week
disallowDaysstringDisallowed days of week
defaultValuestringDefault value (uncontrolled)
namestringForm field name

Events

EventPayloadDescription
update:modelValuestringEmitted when value changes (v-model)
changeEventNative change event
inputEventNative input event
focusEventEmitted on focus
blurEventEmitted on blur
viewchangeEventEmitted when the calendar view changes

Slots

SlotDescription
defaultAdditional content

Polaris Element

Renders as <s-date-picker>. See Polaris DatePicker docs.

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

KiriminAja not affiliated with Shopify.