Prevent extraAttributes escaping

How to prevent greater than expression from being escaped?

Action::make('remove')
    ->extraAttributes([
        'x-show' => 'selectedResources.length > 0',
    ])
Screenshot_2024-06-12_at_08.59.11.png
Solution
new HtmlString('selectedResources.length > 0')
?
Was this page helpful?