Date Range Picker
Collect the start and end dates of a range.
HTML
<div class="rl-scope" data-rl-scope>
<fieldset class="rl-fieldset rl-date-range">
<legend class="rl-label">Reporting period</legend>
<div class="rl-date-range-fields">
<div class="rl-field">
<label class="rl-label" for="demo-date-range-start">Start date</label>
<input class="rl-input" id="demo-date-range-start" type="date" name="start">
</div>
<div class="rl-field">
<label class="rl-label" for="demo-date-range-end">End date</label>
<input class="rl-input" id="demo-date-range-end" type="date" name="end">
</div>
</div>
</fieldset>
</div>This composition submits two native dates. Validate that the end date is on or after the start date.
Use in your app
Copy these tags into your page head once. Serve the files at the paths shown, then add the example’s template to your page.
Page assets
<link rel="stylesheet" href="/mero.css">
<script defer src="/mero.js"></script>