class ResetPasswordForm extends Component implements HasForms
{
use InteractsWithForms;
public ?array $data = [];
public function mount(): void
{
$this->form->fill();
}
public function form(Form $form): Form
{
return $form
->schema([
Section::make('Password Reset')
->description('A password reset link will be sent to your email address.')
->schema([
TextInput::make('email')
->required()
->exists()
])
->footerActions([
Action::make('submit')
->icon('heroicon-m-check')
->color('danger') # This line of code is not working
])
->footerActionsAlignment(Alignment::End)
])
->statePath('data');
}
public function create(): void
{
dd($this->form->getState());
}
public function render()
{
return view('livewire.reset-password-form');
}
}
class ResetPasswordForm extends Component implements HasForms
{
use InteractsWithForms;
public ?array $data = [];
public function mount(): void
{
$this->form->fill();
}
public function form(Form $form): Form
{
return $form
->schema([
Section::make('Password Reset')
->description('A password reset link will be sent to your email address.')
->schema([
TextInput::make('email')
->required()
->exists()
])
->footerActions([
Action::make('submit')
->icon('heroicon-m-check')
->color('danger') # This line of code is not working
])
->footerActionsAlignment(Alignment::End)
])
->statePath('data');
}
public function create(): void
{
dd($this->form->getState());
}
public function render()
{
return view('livewire.reset-password-form');
}
}