Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
export function InputBindingExample() {
const [
currentMonth,
selectedDay,
inputValue,
{ onDayClick, onMonthChange, onChange, onFocus, onBlur },
] = useInput(new Date(), 'yyyy-MM-dd', { required: true });
return (
<form>
<label>
<p>Type a day or pick one from the calendar.</p>
<input value="{inputValue}" placeholder="YYYY-MM-DD">
</label>
<br>
</form>