Full-width ToggleButtons (and control their size)

Full-width ToggleButtons (and control their size)

  • form
  • ToggleButtons

New methods added to ToggleButtons:

->size() sets small/medium/large (or a closure). Default medium.

ToggleButtons::make('status')
    ->options(OrderStatus::class)
    ->size(Size::Large);

->fullWidth() stretches toggle buttons across the field width (stacked, grouped, or inline).

ToggleButtons::make('status')
    ->options(OrderStatus::class)
    ->fullWidth();
All Filament Up To Date tips