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
<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
if anyone fall on this thread
https://filamentphp.com/docs/3.x/support/icons
the cause of the error is because im using :icon instead of icon=