Undefined constant "heroicon" on x-filament::icon

As my last post, im trying to cannibalize the toggle button to a normal livewire component, but i hit a problem, while using x-filament::icon and passing the icon without the $getOffIcon() i get the error Undefined constant "heroicon", so im trying to debug it but i cant find the source code on the vendor, any hint?
3 Replies
Firebat
FirebatOP3mo ago
<x-filament::icon :icon="$getOffIcon()" class="fi-ta-toggle-off-icon h-3 w-3 text-gray-400 dark:text-gray-700" /> if i try putting on :icon, a icon directly it will get the error on the title of the post, but if i try using $this->$getOffIcon, it throws Method App\Livewire\ToggleButtonFilament::evaluate does not exist. (toggleButtonFIlamment) is the component that im creating
Firebat
FirebatOP3mo ago
the cause of the error is because im using :icon instead of icon=
Want results from more Discord servers?
Add your server