Lately, whenever I try to use a date picker in a project, I run into two main issues:
The default browser feels outdated, inaccessible, and not intuitive enough for modern UIs.
External UI libraries often come with bloated bundle sizes and tightly coupled components, making my app unnecessarily heavy.
While working on a project at my company, I needed a simple, flexible, and lightweight date picker that could be styled easily β and nothing quite fit. So, I built Byte-DatePicker.
β¨ Introducing Byte-DatePicker
Byte-DatePicker is a reusable React component library tailored for date selection in forms and dashboards. Written in TypeScript, It allows full date selection (day, month, year) and ships with smooth animations, responsive layout, and minimal styling β making it easy to plug into any modern UI.
π§© Key Features
π Small bundle size β No unnecessary dependencies
π Full date selection β Ideal for forms, reports, billing, subscriptions, content scheduling, etc.
π Minimal styling β Easily customizable with your own CSS
βοΈ React 17, 18, 19 compatible
π§ TypeScript support β Strong types and intellisense out of the box
npm install byte-datepicker
# or
yarn add byte-datepicker
Then in your component:
import ByteDatePicker from "byte-datepicker";
import "byte-datepicker/dist/index.css";
const App = () => {
return (
<div>
<h2>Select a Month and Year</h2>
<ByteDatePicker onChange={(date) => console.log(date)} />
</div>
);
};
Prop | Type | Default | Description |
---|---|---|---|
value |
`Date | null` | null |
onChange |
(date: Date) => void |
undefined |
Callback when a date is selected |
minYear |
number |
currentYear - 10 |
Minimum year selectable |
maxYear |
number |
currentYear + 10 |
Maximum year selectable |
className |
string |
"" |
Custom class name for styling |
π¨βπ» Why You Might Use This
You want a focused datepicker, without a full UI library.
You're building something like a resume form, billing cycle selector, or historical filter.
You want a modern, accessible component with zero styling opinion unless you want to customize it.
π Final Thoughts
This is just the first version of byte-datepicker. If you use it and find it helpful (or want more features), Iβd love your feedback.
Let me know what you think or feel free to contribute! π
Top comments (0)