Ship faster with goilerplate templUI Pro

Time Picker

A native time selector with support for 12/24 hour formats.

Source Tailwind CSS JavaScript

Installation

  1. Install the component

    templui add timepicker
  2. Add the JavaScript to your layout

    @timepicker.Script()
    @popover.Script()
    

    Call this template in your base layout file (e.g., in the <head> section).

Examples

12h Format

With Label

With Custom Placeholder

With Selected Time

With Step Intervals

With Min/Max Range

With Form

Select a time from the dropdown.

Please select a time

API Reference

Required parameter
Hover for description

TimePicker

Time picker component for selecting time values with 12/24 hour format support.

Name Type Default
ID
string
-
Class
string
-
Attributes
templ.Attributes
-
Name
string
-
Value
time.Time
-
MinTime
time.Time
-
MaxTime
time.Time
-
Step
int
1
Use12Hours
bool
false
AMLabel
string
AM
PMLabel
string
PM
Placeholder
string
Select time
Disabled
bool
false
HasError
bool
false