Allows you to provide a date in natural language and helps by giving suggestions.
yesterday Sun Feb 23 2025
2:34:03 AM
today Mon Feb 24 2025
2:34:04 AM
tomorrow Tue Feb 25 2025
2:34:04 AM
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.
toast.success(label, {
description: `${date.toDateString()} ${date.toLocaleTimeString()}`
})}
/>