Skip to content

Button Icon with Blade Icons #1800

Discussion options

You must be logged in to vote

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')
    ];
}

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@zikrimuhammad09
Comment options

Answer selected by zikrimuhammad09
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants