Components
Toggle sidebar
Flux Pro component
This component is only available in the Pro version of Flux.

Time picker

Allow users to select specific times for scheduling events or setting appointments. Perfect for time-based filtering and precise scheduling.

Copy to clipboard
<flux:time-picker />

Basic usage

Set the initial selected time using the value prop with a H:i formatted time string:
Copy to clipboard
<flux:time-picker value="11:30" />
You can also bind the selection to a Livewire property using wire:model:
Copy to clipboard
<flux:time-picker wire:model="time" />

Input trigger

Attach the time picker to a time input for more precise time selection control.

:  
Copy to clipboard
<flux:time-picker type="input" />

Without dropdown

Remove the dropdown from the input trigger.
:  
Copy to clipboard
<flux:time-picker type="input" :dropdown="false" />

Multiple times

Allow users to select multiple times.

Copy to clipboard
<flux:time-picker multiple />

Time format

By default, the time picker will use the browser's locale to determine the time format.

You can override this by setting the time-format attribute to 12-hour or 24-hour.

12-hour 24-hour
Copy to clipboard
<flux:time-picker time-format="12-hour" /><flux:time-picker time-format="24-hour" />

Interval

You can set the interval between the displayed time options by setting the interval attribute to a number of minutes. The default is 30 minutes.

Copy to clipboard
<flux:time-picker interval="60" />

Min/max times

Restrict the selectable times by setting minimum and maximum boundaries.

Copy to clipboard
<flux:time-picker min="09:00" max="17:00" />
You can also use the convenient "now" shorthand:
Copy to clipboard
<!-- Prevent selection before now... --><flux:time-picker min="now" /><!-- Prevent selection after now... --><flux:time-picker max="now" />

Unavailable times

Disable specific times from being selected. Useful for blocking out appointments, showing booked times, or indicating unavailable time slots.

Copy to clipboard
<flux:time-picker unavailable="03:00,04:00,05:30-07:29" />

Open to

Set the time that the time picker will open to. Otherwise, the time picker defaults to the selected time, or the current time.

Copy to clipboard
<flux:time-picker open-to="10:00" />

Localization

By default, the time picker will use the browser's locale (e.g. navigator.language).

You can override this behavior by setting the locale attribute to any valid locale string (e.g. fr for French, en-US for English, etc.):

Copy to clipboard
<flux:time-picker locale="ja-JP" />

Reference

flux:time-picker

Prop
Description
wire:model
Binds the time picker to a Livewire property. See the wire:model documentation for more information.
value
Selected time(s). Format depends on mode: single time (H:i) or multiple times (H:i,H:i).
type
Type of time picker. Options: input, button. Default: button.
multiple
Allow users to select multiple times. Default: false.
time-format
Time format. Options: auto (default), 12-hour, 24-hour.
interval
Interval in minutes between the displayed time options. Default: 30.
min
Earliest selectable time. Can be a time string or "now".
max
Latest selectable time. Can be a time string or "now".
unavailable
Unavailable times. Can be a time string or a comma-separated list of time strings.
open-to
Time to open the time picker to. Default: selected time, or now.
label
Label text displayed above the time picker. When provided, wraps the component in a flux:field with an adjacent flux:label.
description
Help text displayed above the time picker. When provided alongside label, appears between the label and time picker within the flux:field wrapper.
description:trailing
The description provided will be displayed below the time picker instead of above it.
badge
Badge text displayed at the end of the flux:label component when the label prop is provided.
placeholder
Placeholder text displayed when no time is selected.
size
Size of the time picker. Options: sm, xs.
clearable
Displays a clear button when a time is selected.
disabled
Prevents user interaction with the time picker.
invalid
Applies error styling to the time picker.
locale
Set the locale for the time picker. Examples: fr, en-US, ja-JP.
Attribute
Description
data-flux-time-picker
Applied to the root element for styling and identification.
Copyright © 2025 Wireable LLC ·Terms of Service
Built with by
Caleb Porzio and Hugo Sainte-Marie