php artisan aura:add replay-button
Copies the component source into resources/views/components/aura/. Run php artisan aura:init first if you haven't already. See the CLI guide for all options.
composer require bluestarsystem/aura-ui
php artisan aura:install
Full installation instructions in the Installation guide.
Pro Component — This component requires an Aura UI Pro license.
Overview
<x-aura::replay-button> regenerates an assistant reply.
Basic Usage
<div class="flex gap-2">
<x-aura::replay-button />
<x-aura::replay-button busy />
<x-aura::replay-button size="md" label="Regenerate" />
</div>Props
| Prop | Type | Default | Description |
|---|---|---|---|
label |
string|null |
null |
Defaults to the translated "Try again". |
size |
string |
'sm' |
sm, md. |
icon |
string |
'refresh-cw' |
Icon while idle. |
busy |
bool |
false |
Disables it and announces that a reply is being generated. |
Accessibility
- The busy state stays on the button rather than replacing it. A control that vanishes while it works leaves the keyboard focus on nothing and moves the page under whoever just pressed it.
- The spinner stops under
prefers-reduced-motion.