nylas-time-window-picker

Overview

The nylas-time-window-picker component is a time picker that can be used to select a time.

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

Example


Properties

PropertyAttributeDescriptionTypeDefault
hasErrorhas-errorThis sets the error state of the input.booleanfalse
minimumStartTimeminimum-start-timeThis is the start time value if one is set by the parent component. It is useful if this component is used to render an end time which should not be before the start time, defining the earliest selectable time.null | stringnull
name (required)nameThe name of the input.stringundefined
placeholderplaceholderThe placeholder text for the input.string'hh:mmam/pm'
time (required)timeThe time to display in the input. This is passed by the parent component and can be updated using the setTime prop function provided by the parent component.stringundefined

Events

EventDescriptionType
formErrorThis event is fired when the form has an error. The parent component can listen for this event and display an error message or set form validity.CustomEvent<{ key: string; message: string; }>
timeChangeThis event is fired when the time is changed.CustomEvent<{ key: string; value: string; }>

Shadow Parts

PartDescription
"time-input"The time input
"time-picker"The time picker container
"times"The list of times

Graph


Built with StencilJS