F
Filament16mo ago
Anik

Radio components

Hello, Is there any way to pass html values to the radio descriptions?
1 Reply
carloscapote
carloscapote16mo ago
Try this:
\Filament\Forms\Components\Radio::make('status')
->options([
'draft' => new \Illuminate\Support\HtmlString('You can use <i>HTML</i> here'),
'scheduled' => 'Scheduled',
'published' => 'Published'
]),
\Filament\Forms\Components\Radio::make('status')
->options([
'draft' => new \Illuminate\Support\HtmlString('You can use <i>HTML</i> here'),
'scheduled' => 'Scheduled',
'published' => 'Published'
]),

Did you find this page helpful?