react-clockify
Version:
A sleek, customizable, and mobile-friendly React time picker clock UI component
80 lines (56 loc) โข 1.92 kB
Markdown
# โฐ react-clockify
> A sleek, customizable, and mobile-friendly time picker component for React.
Perfect for dashboards, forms, and scheduling interfaces.
## ๐ฆ Installation
```bash
npm install react-clockify
```
or
```bash
yarn add react-clockify
```
## ๐ Usage
```jsx
import React, { useState } from 'react';
import Clockify from 'react-clockify';
const App = () => {
const [selectedTime, setSelectedTime] = useState('12:00');
return (
<div>
<h3>Selected Time: {selectedTime}</h3>
<Clockify
value={selectedTime}
onChange={(time) => setSelectedTime(time)}
format="12" // or "24"
/>
</div>
);
};
export default App;
```
## โ๏ธ Props
| Prop | Type | Default | Description |
|-------------|----------|---------|----------------------------------------------------|
| `value` | `string` | `""` | Time in "HH:mm" format |
| `onChange` | `func` | | Callback when time is changed |
| `format` | `string` | `"12"` | Clock format: `"12"` for AM/PM or `"24"` for 24hr |
## ๐จ Features
- ๐ Analog and digital hybrid time selection
- ๐ฑ Responsive and mobile-friendly
- ๐ฏ Simple API with full control over time selection
- ๐ AM/PM toggle or 24-hour support
- โ๏ธ Lightweight and dependency-free
## ๐ธ Demo

## ๐งช Running Locally
```bash
git clone https://github.com/yourusername/react-clockify.git
cd react-clockify
npm install
npm run storybook
```
## ๐ค Contributing
Contributions, issues, and feature requests are welcome!
Feel free to check [issues](https://github.com/yourusername/react-clockify/issues) or submit a PR.
## ๐ License
MIT ยฉ [Aryan Barde](https://github.com/aryanbarde80)