0.5.0 • Published 5 years ago

@nonnontrivial/calendar v0.5.0

Weekly downloads
1
License
MIT
Repository
github
Last release
5 years ago

calendar

simple, selectable dates for React

requires the following:

react@latest react-dom@latest

Installation

npm i -S @nonnontrivial/calendar

An Example

import { DateContext, MonthCycler, Calendar } from '@nonnontrivial/calendar';

function Sundial(props) {
  let [timeString, setTimeString] = React.useState(null);
  let onChange = React.useCallback(date => {
    setTimeString(date.toTimeString());
  }, []);
  return (
    <React.Fragment>
      <marquee>{timeString}</marquee>
      <DateContext.Provider value={{ onChange }}>
        <MonthCycler />
        <Calendar />
      </DateContext.Provider>
    </React.Fragment>
  );
}
0.5.0

5 years ago

0.4.0

5 years ago

0.3.0

5 years ago

0.2.0

5 years ago

0.1.0

5 years ago

0.0.1

5 years ago