© 2026 Hedgehog Software, LLC

TwitterGitHubDiscord
More
CommunitiesDocsAboutTermsPrivacy
Search
Star
Setup for Free
FilamentF
Filament•2y ago•
3 replies
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'
                                    }),
              Forms\Components\TextInput::make('platform')
                                    ->label('Platform')
                                    ->url(fn ($record) =>  $record->url)
                                    ->color(fn (string $state): string => match ($state) {
                                  
                                        default => 'gray'
                                    }),
Filament banner
FilamentJoin
A powerful open source UI framework for Laravel • Build and ship admin panels & apps fast with Livewire
20,307Members
Resources

Similar Threads

Was this page helpful?
Recent Announcements

Similar Threads

badge in form placeholder
FilamentFFilament / ❓┊help
2y ago
Text area use in table column
FilamentFFilament / ❓┊help
2y ago
translate badge column
FilamentFFilament / ❓┊help
2y ago
Table column badge
FilamentFFilament / ❓┊help
2y ago