SaasRock Logo

Date Input

InputDate

<InputDate name="name" title="title" />

InputDate - with State

import { useState } from "react";
import InputDate from "~/components/ui/input/InputDate";

export default function PreviewInputDateWithState() {
  const [value, setValue] = useState(new Date("1990-01-02"));
  return <InputDate name="name" title="Title" value={value} onChange={(e) => setValue(e)} />;
}