Skip to content

KDatePicker

示例

Date Picker

Selected: none

A native date picker input field.

Props

NameTypeDefaultDescription
modelValueDate | undefinedundefinedThe selected date value.
placeholderstring'Select date'Placeholder text for the input field.
disabledbooleanfalseWhether the input is disabled.

Emits

NameParametersDescription
update:modelValueDate | undefinedEmitted when the selected date changes.

Slots

NameDescription
This component does not provide slots.

Basic Usage

vue
<script setup>
import { ref } from 'vue'
import { KDatePicker } from '@kK-2004/ui-component'

const date = ref(undefined)
</script>

<template>
  <KDatePicker v-model="date" placeholder="Pick a date" />
</template>