notification position in v3

How can I move notification from corner to center ... like in v2 I cannot find it
No description
5 Replies
cheesegrits
cheesegrits2y ago
Not 100% sure, but I think you can put ...
Notifications::horizontalAlignment('center');
Notifications::verticalAlignment('top');
Notifications::horizontalAlignment('center');
Notifications::verticalAlignment('top');
... in a service provider.
sumardi
sumardi2y ago
use Filament\Notifications\Livewire\Notifications;
use Filament\Support\Enums\Alignment;
use Filament\Support\Enums\VerticalAlignment;

Notifications::alignment(Alignment::Center);
Notifications::verticalAlignment(VerticalAlignment::Start);
use Filament\Notifications\Livewire\Notifications;
use Filament\Support\Enums\Alignment;
use Filament\Support\Enums\VerticalAlignment;

Notifications::alignment(Alignment::Center);
Notifications::verticalAlignment(VerticalAlignment::Start);
Rasasak
RasasakOP2y ago
awesome thanks !
okawiadnyana
okawiadnyana13mo ago
Hi..i already write down notification alignment in my custom service provider and register it in config/app file…but its not work. It is correct to put notification aligment with custom service provider..or i should write in default service provider?
Rasasak
RasasakOP12mo ago
I wrote it to filament provider

Did you find this page helpful?