DateRangeField
Two segmented date fields with one ordered range and atomic form values.
Preview
Use DateRangeField
DateRangeField is a named export of @flood-md/react. Connect the package once, then import what you use.
Design notes
- The value is {start,end}, with canonical YYYY-MM-DD dates or empty endpoints. Editable partial, reversed, unavailable and refused ranges block native submission. Readonly submits a complete ordered accepted pair despite current bounds/availability; partial, reversed and refused pairs stay atomic empty values.
- Both named bridges represent one range contract. The group owns relationship validation while each DateField preserves its calendar validity and keyboard behavior.
- Start/end names and labels are explicit; min/max, readonly/disabled, status and form reset follow the field contracts.
- Use DateRangePicker for visual interval selection. Introduced in 0.2.7.
API reference
View TypeScript source