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
modelValuestring—Bound value (use with v-model)
type'single' | 'range'—Selection type
defaultViewstring—Default calendar view
viewstring—Current calendar view
allowstring—Allowed date range
disallowstring—Disallowed date range
allowDaysstring—Allowed days of week
disallowDaysstring—Disallowed days of week
defaultValuestring—Default value (uncontrolled)
namestring—Form 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.