date-input — independently scanned and version-tracked by SaferSkills.
SaferSkills independently audited date-input (Agent Skill) and scored it 100/100 (green). The audit ran 55 deterministic rules across Security, Supply Chain, Maintenance, Transparency, and Community; it found 0 high-severity and 0 lower-severity findings. The full rule-by-rule trace and per-finding evidence are below. Free, methodology-open.
Findings & checks · 0 flagged
Every scanned point with the score it earned and what moved between them.
First recorded scan — no prior version to compare against.
The primary manifest — the file an agent reads to learn what this artifact does.
Text input with calendar popup for date selection. Supports single dates and date ranges with optional preset quick filters. Built on Input, Calendar, and Menu components.
import { DateInput } from 'reablocks';Extends Input props (except value and onChange), plus:
| Prop | Type | Default | Description |
|---|---|---|---|
value | Date (single) or [Date, Date] (range) | — | Selected date(s) |
onChange | (value: Date) => void or (value: [Date, Date]) => void | — | Date change handler |
isRange | boolean | false | Enable range mode |
format | string | 'MM/dd/yyyy' | date-fns format string for display/parsing |
placement | Placement | 'bottom-start' | Calendar popup placement |
openOnFocus | boolean | true | Open calendar when input is focused |
preset | PresetOption[] | [] | Preset date options (shows list before calendar) |
openCalendarOptionName | string | 'Custom Date' / 'Custom Dates' | Label for the "open calendar" option in preset list |
icon | ReactElement | <CalendarIcon /> | Icon for the calendar button |
theme | DateInputTheme | — | Per-instance theme override |
const [date, setDate] = useState(new Date());
<DateInput value={date} onChange={setDate} />const [range, setRange] = useState<[Date, Date]>([startDate, endDate]);
<DateInput value={range} isRange onChange={setRange} />const presets: PresetOption[] = [
{ label: 'Today', value: new Date() },
{ label: 'Last 7 days', value: () => [subDays(new Date(), 7), new Date()] }
];
<DateInput value={date} preset={presets} onChange={setDate} />When presets are provided, a list of options is shown first. Selecting "Custom Date" opens the full calendar.
<DateInput value={date} format="yyyy-MM-dd" onChange={setDate} />The input placeholder automatically shows the format in uppercase (e.g. MM/DD/YYYY). Users can type dates directly — the input parses them using the format string.
~30 seconds. Free. No account. Every finding cites a rule and a line of evidence.