NLPDateInput

A natural language date input with suggestions.

Allows you to provide a date in natural language and helps by giving suggestions.

Installation

jsrepo add ui/nlp-date-input

Min/Max

You may want to limit what suggestions are actually presented to the user so that they don't schedule an appointment 30 years from now. You can do this with the min and max props.

API Reference

NlpDateInput

The root component for the NLP Date Input. Allows users to enter dates in natural language and get suggestions.

PropTypeDefault
min?
date -
max?
date -
placeholder?
string E.g. "tomorrow at 5pm" or "in 2 hours"
onChoice?
function -