0.1.2 • Published 4 years ago

@gsdias/react-calendarpicker v0.1.2

Weekly downloads
-
License
MIT
Repository
github
Last release
4 years ago

A Datepicker built with Chakra elements

It supports single and range selection. Fully accessible. WIP and a few more features to come. Any feedback is welcome.

Common usage

  const [startDate, setStartDate] = useState<Date>(undefined);
  
  <DatePicker
    onChange={()=>{}}
    isRange
  />
  <DatePicker
    onChange={({startDate: value}) => setStartDate(value)}
	startDate={startDate}
  />