public function form(Form $form): Form
{
return $form
->schema([
Components\TextInput::make('stuff')
->suffixAction(
Action::make('sendStuff')
->icon('heroicon-m-clipboard')
->action(function () {
$response = "Action triggered!"
})
),
Components\Textarea::make('response')
->rows(10),
]);
}
public function form(Form $form): Form
{
return $form
->schema([
Components\TextInput::make('stuff')
->suffixAction(
Action::make('sendStuff')
->icon('heroicon-m-clipboard')
->action(function () {
$response = "Action triggered!"
})
),
Components\Textarea::make('response')
->rows(10),
]);
}