marcoguada/mg-filament-timepicker
最新稳定版本:v0.1.0
Composer 安装命令:
composer require marcoguada/mg-filament-timepicker
包简介
A Filament v5 plugin that enhances timepicker fields with a popup time selector.
关键字:
README 文档
README
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 Guada — marco-guada.com
License
The MIT License (MIT). Please see License File for more information.
统计信息
- 总下载量: 9
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 1
- 点击次数: 9
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: MIT
- 更新时间: 2026-03-07



