Don't like the default time pickers that come with MUI and shadcn/ui? Neither do I.
This is a Google Calendar-style time picker with autocomplete - much better than the default ones.
The default time pickers from Material-UI and shadcn/ui are not great. Google Calendar's time picker is way better - you can type to search and quickly select times. So I built these components.
Just copy the code from the components and use them in your project:
MuiAutocompleteTimePicker.tsx
- Material-UI versionShadcnAutocomleteTimePicker.tsx
- shadcn/ui version
Live Demo: https://autocomplete-timepicker.lovable.app/
Or run locally:
bun install
bun run dev
Initially created using Lovable, then modified the code a bit to make it even better. Also added comprehensive tests for both components to ensure they work reliably.
That's it. Copy the code you need and use it.