UI LibraryUI Library
Guide
Components
Styling
Repo
Guide
Components
Styling
Repo
  • Guide

    • Introduction
    • Getting Started
  • Components

    • CataUiAccordion
    • CataUiAccordionItem
    • CataUiAlert
    • CataUiAnchorMenu
    • CataUiBadge
    • CataUiButton
    • CataUiCollapse
    • CataUiDraggable
    • CataUiDropdown
    • CataUiDropover
    • CataUiFileTree
    • CataUiIcon
    • CataUiIconSwitch
    • CataUiInput
    • CataUiInputCheckbox
    • CataUiInputColor
    • CataUiInputDate
    • CataUiInputGroup
    • CataUiInputRadio
    • CataUiInputSearch
    • CataUiInputSelect
    • CataUiMasonry
    • CataUiMasonryTile
    • CataUiLogo
    • CataUiModal
    • CataUiPaginate
    • CataUiProgress
    • CataUiSpinner
    • CataUiStatusLabel
    • CataUiSwitch
    • CataUiTable
    • CataUiTableAG
    • CataUiTableFooter
    • CataUiTabs
    • CataUiTabSwitch
    • CataUiTooltip
  • Styling

    • Colors
    • Icons
    • Typography
    • Utils

CataUiInputDate

A customizable date and time picker component with support for date ranges, different modes (date, time, datetime), and integrated with v-calendar for a rich user experience.

Examples

Basic Date Picker

Select a date

Date Time Picker

Select date and time

Time Picker

Select time

Date Range Picker

Select date range

Custom Format

Custom format

With Tooltip and Multiple Columns

With tooltip and 2 columns

Disabled State

Disabled picker

The examples below demonstrate the various capabilities and configurations of the CataUiInputDate component.

Basic Usage

<!-- Basic date picker -->
<CataUiInputDate 
  v-model="dateValue" 
  label="Select a date" />

<!-- Date and time picker -->
<CataUiInputDate 
  v-model="dateTimeValue" 
  label="Select date and time" 
  mode="datetime" />

<!-- Time only picker -->
<CataUiInputDate 
  v-model="timeValue" 
  label="Select time" 
  mode="time" />

Advanced Features

<!-- Date range selection -->
<CataUiInputDate 
  v-model="dateRangeValue" 
  label="Select date range" 
  range />

<!-- Custom date format -->
<CataUiInputDate 
  v-model="dateValue" 
  label="Custom format" 
  format="YYYY-MM-DD" />

<!-- Multiple columns with tooltip -->
<CataUiInputDate 
  v-model="dateValue" 
  label="With tooltip and 2 columns" 
  tooltip="Select a date using the calendar"
  :columns="2" />

<!-- Disabled state -->
<CataUiInputDate 
  v-model="dateValue" 
  label="Disabled picker" 
  disabled 
/>

Props

PropDescriptionTypeDefaultRequiredOptions
columnsNumber of calendar columns to displayNumber1false
disabledDisables the date picker inputBooleanfalsefalse
formatCustom format for the date displayString''false
labelLabel text displayed above the inputString''false
modeSets the mode of the date pickerString'date'false'date', 'time', 'datetime'
modelValueThe selected date value (v-model)Stringtrue
rangeEnables selection of a date range (start and end)Booleanfalsefalse
tooltipTooltip text displayed on hoverString''false

Events

EventDescriptionParameters
update:modelValueEmitted when the date value changesString (new date value)

Slots

NameDescription
actionsContent for the input actions area (default includes clear button when a value is present)
Prev
CataUiInputColor
Next
CataUiInputGroup