Allows you to provide a date in natural language and helps by giving suggestions.
yesterday Thu Mar 20 2025
4:19:21 PM
today Fri Mar 21 2025
4:19:21 PM
tomorrow Sat Mar 22 2025
4:19:22 PM
toast.success(label, {
description: `${date.toDateString()} ${date.toLocaleTimeString()}`
})}
/>
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.
today Fri Mar 21 2025
4:19:22 PM
toast.success(label, {
description: `${date.toDateString()} ${date.toLocaleTimeString()}`
})}
/>