0.5.0 • Published 1 year ago
react-temporal-ui v0.5.0
react-temporal-ui
A UI library for time based units in React, providing hooks and components for calendars.
Documentation can be found here
Installation
npm install react-temporal-ui
Usage
import { useCalendar } from 'react-temporal-ui';
const App = () => {
const { weeks, nextMonth, prevMonth } = useCalendar();
return (
<>
<button onClick={prevMonth}>Prev</button>
<button onClick={nextMonth}>Next</button>
{weeks.map((week, i) => (
<div key={i}>
{week.map((day, j) => (
<p>{day.getDate()}</p>
))}
</div>
))}
</>
);
};
License
This project is licensed under the terms of the MIT license.
0.5.0
1 year ago
0.4.0
1 year ago
0.3.0-beta
1 year ago
0.2.0-beta
1 year ago
0.1.0-beta
1 year ago
0.0.0-beta
1 year ago