Examples
Working configurations you can copy into your project.
Demos run inline so you can try them right away. In your app the picker opens in a modal when the input is clicked. Switch a demo to Modal to see that.
React examples
These examples use React and Next.js, but TimepickerUI works with any JavaScript framework or vanilla JS. The same API is available in Vue, Angular, Svelte, or plain JavaScript. Check the Quick Start guide for framework-specific examples.
Basic Usage
#Default Timepicker
Simple time picker with default settings
Clock Format
#24-Hour Format
Use 24-hour clock instead of 12-hour with AM/PM
Theming
#Dark Theme
Apply dark theme for better visual hierarchy
Callbacks
#Handle Time Selection
React to user actions with callback functions
Increments
#Custom Minute Steps
Allow only specific minute intervals (e.g., 15-minute increments)
Restrictions
#Disabled Time Ranges
Prevent selection of specific hours or time ranges