marcoguada/mg-filament-timepicker

A Filament v5 plugin that enhances timepicker fields with a popup time selector.

Maintainers

Package info

github.com/Marco-Guada/mg-filament-timepicker

Homepage

Issues

Language:Blade

pkg:composer/marcoguada/mg-filament-timepicker

Statistics

Installs: 9

Dependents: 0

Suggesters: 0

Stars: 1

v0.1.0 2026-03-07 19:15 UTC

This package is auto-updated.

Last update: 2026-05-07 19:40:44 UTC


README

Latest Version on Packagist GitHub Tests Action Status GitHub Code Style Action Status Total Downloads

A Filament v5 plugin that enhances native TimePicker fields with a visual popup time selector.

Two styles are available: linear (vertical sliders) and radial (clock dial).

Requirements

  • PHP 8.2+
  • Filament v5

Installation

composer require marcoguada/mg-filament-timepicker

Usage

Chain the macros onto any native TimePicker field:

use Filament\Forms\Components\TimePicker;

TimePicker::make('start_time')
    ->popup(true)
    ->popupStyle('linear')   // 'linear' (default) or 'radial' ->popupStyle('radial')
    ->popupFormat(24)        // 24 (default) or 12
    ->format('H:i')
    ->displayFormat('H:i')
    ->seconds(false),

Macros

Macro Default Description
->popup(bool $enabled = true) Activates the popup on the field
->popupStyle(string $style = 'linear') 'linear' UI style: 'linear' or 'radial'
->popupFormat(int $format = 24) 24 Default hour format shown in the popup: 24 or 12

The user can toggle between 12h and 24h at any time from inside the popup.

Linear style

Vertical sliders for hours and minutes. Drag up/down to set the time.

Radial style

Classic clock dial. Drag the hour and minute handles around the clock face.

Translations

English and Italian are included out of the box. To publish the translation files for customization:

php artisan vendor:publish --tag="mg-filament-timepicker-translations"

Changelog

Please see CHANGELOG for recent changes.

Author

Marco Guadamarco-guada.com

License

The MIT License (MIT). Please see License File for more information.

MG Filament Timepicker MG Filament Timepicker MG Filament Timepicker MG Filament Timepicker