```jsx
const [value, setValue] = React.useState(() => new Date());

const handleChange = event => {
  setValue(event.target.value)
};

<DatePickerInput
  label="An optional label"
  selected={value}
  onChange={handleChange}
  className="p-2 bg-transparent border border-current text-current w-full max-w-sm"
/>
```
