Skip to content

AisDatepicker ​

Datepicker Component

Default behaviour ​

You can pass javascript date to vmodel. This date be the selected date on datepicker. You can also pass null or empty string if you don't want vmodel to bind any date.

You can also type date in input box in "yyyy-MM-dd" format

In javascript date object, month starts from 0-11. 0 being January and 11 being December

Selected Date: Thu Nov 12 2026 00:00:00 GMT-0600 (Central Standard Time)

Props ​

exclude ​

This prop will accept an array of dates or an array of string ('yyyy-MM-dd') that you want to disable. You can also mix match date and string in an array and pass that array in exclude prop.

Selected Date:

only ​

With this prop all dates are disabled and dates that are passed to this prop are visible.

This prop will accept an array of dates or an array of string ('yyyy-MM-dd') that you want to enable. You can also mix match date and string in an array and pass that array in only prop.

Selected Date:

min and max ​

With min prop, you can disable all the dates prior to min prop date and with max prop you can disable all the dates after max prop date.

Both min and max prop accepts date as an input

Selected Date:

disabled ​

invalid ​

size ​

Allowed values are "sm ,md, lg". The default value is md.

variant ​

primary Variant

Events ​

@select ​

AisDatepicker emits the @select event when a date is selected. Choose a date below to see the event's payload.

selection:
    
  

Component Reference ​

Props ​

Property
Type(s)
Required
Default
Description
Deprecated
disabled
Boolean
Places component in a disabled state, when true
false
exclude
Array
Disable dates in exclude array
false
invalid
Boolean
false
Places component in an invalid state, when true
false
max
Date
Disable all the dates after to max date
false
min
Date
Disable all the dates prior to min date
false
modelValue
Date, String
""
v-model controls the visibility of the datepicker
false
only
Array
Disable all dates except dates available in only prop array
false
required
Boolean
false
Set component in required state and show astrick(*), when true
false
size
String
undefined
Set the size of the component's appearance
Valid values:
xs, sm, md, lg, xl
false
variant
String
'primary'
Applies one of the theme color variants to the component.
false

Events ​

Event
Arguments
Description
select
  • selectedOptions
    object
    -
    The selected option object(s)
Emitted when the selected values change
update:modelValue
  • modelValue
    union
    -
    The selected value(s)
Emitted when the selected values change