- data (optional): Accepts a data object as input from the parent component.
data = { startDate: '2024-01-16', startTime: '22:40', endDate: '2024-01-27', endTime: '22:40', }
- type (mandatory): Type of datetime picker.
'datetime'
: Date and time picker.'date'
: Date-only picker.'time'
: Time-only picker.
- format (optional): Format for time in 12h or 24h format.
'12'
: 12-hour format.'24'
: 24-hour format.
- color (optional): For changing the color of component parts.
color = '#000000'
- step (mandatory): Minute step. When the user selects a time, the nearest step minute is automatically selected.
step = 5 (in minutes)
- handleEmitDate (mandatory): Emits user input data in the specified JSON format.
{ startDate: '2024-01-16', startTime: '22:40', endDate: '2024-01-27', endTime: '22:40', }
npm install
npm run dev
npm run build
Lint with ESLint
npm run lint