DocSpace-client/packages/shared/components/time-picker/README.md

1.2 KiB

TimePicker

Time input

Usage

import { TimePicker } from "@docspace/shared/components";
<TimePicker
  date={new Date()}
  setDate={setDate}
  hasError={true}
  onChange={(date) => console.log(date)}
/>

Properties

Props Type Required Values Default Description
className string - - '' Allows to set classname
initialDate object - - - Inital date
onChange func - - - Allow you to handle changing events of component
hasError bool - - false Indicates error
onBlur func - - - Triggers function on blur
focusOnRender bool - - false Focus input on render
forwardedRef object - - false Passes ref to child component