FilamentF
Filament2y ago
adnn

Use a badge text column in ->form?

In my edit and view page i want to display a static item as a badge, is this achievable?

Example something identical to this but for the form?

              Forms\Components\TextInput::make('platform')
                                    ->label('Platform')
                                    ->url(fn ($record) =>  $record->url)
                                    ->color(fn (string $state): string => match ($state) {
                                  
                                        default => 'gray'
                                    }),
Was this page helpful?