@awaitio/input-date
v1.4.0
Published
Date input for AwaitIO: io.input.date(), returns a luxon DateTime.
Readme
@awaitio/input-date
Date input for AwaitIO – io.input.date(), returns a luxon DateTime.

Install
npm install @awaitio/input-dateNeeds awaitio and zod in the app, see the quickstart.
Setup
Register it under the key you want in io, see Input components:
import { inputDate } from '@awaitio/input-date';
export const app = new AwaitIO({
// name, actionsDirectory, theme, secret, users…
components: { input: { date: inputDate } },
});Usage
import { DateTime } from 'luxon';
const dueOn = await io.input.date('Due date', {
defaultValue: DateTime.now().plus({ days: 14 }),
min: DateTime.now(),
});
dueOn.toISODate(); // '2026-11-02'Props, optional, returns, built-in validation and custom validation are on the Input Date docs page.
