FilamentF
Filament15mo ago
Xavi

Custom field button color

I create a custom form field to record voice. How to change <x-filament::button> color when i click on it. This is my button code:

<div>
            <x-filament::button
                type="button"
                x-on:click="isRecording ? stopRecording() : startRecording()"
                x-text="isRecording ? 'Detener grabación' : 'Iniciar grabación'"
            ></x-filament::button>
        </div>


Thanks!
Was this page helpful?