Button Icon with Blade Icons #1800
Answered
by
dansysanalyst
zikrimuhammad09
asked this question in
Q&A
-
Hello, is there any way to put blade icons on action buttons? thanks I do this, but rendered html
|
Beta Was this translation helpful? Give feedback.
Answered by
dansysanalyst
Dec 15, 2024
Replies: 1 comment 1 reply
-
You could render the component like so: use Illuminate\Support\Facades\Blade;
//...
public function actions(User $row): array
{
return [
Button::add('view')
->slot(Blade::render('<x-heroicon-o-eye />') . ' view')
];
} |
Beta Was this translation helpful? Give feedback.
1 reply
Answer selected by
zikrimuhammad09
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
You could render the component like so: