react-nepali-datetime-picker
Version:
A simple and reusable Nepali calendar, date and time picker components for React.
89 lines (64 loc) • 2.73 kB
Markdown
# React Nepali Datetime Picker
[](http://commitizen.github.io/cz-cli/)
This component library is built with React and TailwindCSS, and it is highly customizable to meet the needs of any user. And it aims to provide a comprehensive solution for integrating Nepali calendar functionality into your React applications. It offers a collection of reusable components that will enable seamless date picking, time picking, and datetime picking capabilities.
## Components
* **Date Picker**: Let's user select nepali calendar date. ✅
* **Time Picker**: Let's user select nepali time. ✅
* **DateTime Picker**: Let's user select nepali date and time. ✅
* **Static Calendar**: Let's user select nepali calendar date without popupover/modal. ✅
* **Static Desktop Time**: Let's user select nepali time without popupover/modal. ✅
* **Static Mobile Time**: Let's user select nepali time with clock layout and no popupover/modal. 🚧
Demo site [link](https://react-nepali-datetime-picker.web.app)
## Before installation
You need to insall [Node.js](https://nodejs.org) and [Tailwind CSS](https://tailwindcss.com).
## Installation
1. Install react-nepali-datetime-picker
```bash
npm install react-nepali-datetime-picker
#or
yarn add react-nepali-datetime-picker
#or
pnpm add react-nepali-datetime-picker
```
2. Then add `nedtTwPlugin` to your tailwind.config.js files:
```js
import {
nedtTwPlugin,
} from 'react-nepali-datetime-picker';
module.exports = {
//...
plugins: [nedtTwPlugin()],
}
```
## Usage
```jsx
import {
DatePicker,
TimePicker,
DateTimePicker,
StaticCalendar,
StaticDesktopTime,
} from 'react-nepali-datetime-picker';
import 'react-nepali-datetime-picker/dist/style.css';
const MyComponent = () => {
return (
<>
<DatePicker />
<TimePicker />
<DateTimePicker />
<StaticCalendar />
<StaticDesktopTime/>
</>
);
};
export default MyComponent;
```
## License
This project is licensed under the MIT License. For more details, see the [LICENSE](./LICENSE) file.
## Author
* Name: Binod Nepali
* GitHub: [@binodnepali](https://github.com/binodnepali)
* Email: nepalibinod9@gmail.com
* Website: [https://binodnepali.me/](https://binodnepali.me/)
We welcome contributions from the open-source community to help us complete and improve this project. Feel free to create issues, submit pull requests, or reach out to the author for any feedback or questions.
Thank you for your interest in the React Nepali Datetime Picker! Together, we can make it a powerful tool for Nepali calendar integration in React applications.