nylas-date-picker

Overview

The nylas-date-picker component is a UI component that allows users to select a date.

Version1.1.0-canary.14
Install (React)npm install @nylas/react
Import (React)import { NylasDatePicker } from '@nylas/react';

Example


Properties

PropertyAttributeDescriptionTypeDefault
configSettingsThe config settings.undefined | { scheduler: { available_days_in_future: number; min_cancellation_notice: number; min_booking_notice: number; cancellation_policy: string; }; organizer: { name: string; email: string; }; }undefined
eventDurationevent-durationThe event duration.number | undefinedundefined
isLoadingis-loadingThe loading state.boolean | undefinedundefined
selectableDatesThe dates that are selectable.Date[] | undefinedundefined
selectedDateThe selected date.Date | undefinedundefined

Events

EventDescriptionType
dateSelectedThis event is fired when a date is selected.CustomEvent<Date>
monthChangedThis event is fired when the month is changed.CustomEvent<Date>

Shadow Parts

PartDescription
"'ndp__title"
"ndp"The date picker host.
"ndp__date"The date.
"ndp__date--current-day"The current day.
"ndp__date--current-month"The dates in the current month.
"ndp__date--selected"The selected date.
"ndp__day"The day.
"ndp__month-button"The month button.
"ndp__month-header"The month header.

Built with StencilJS