Skip to content

No results for

navigate open Esc close
php artisan aura:add assistant-message

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::assistant-message> renders a reply: author, optional model badge, the text, and any actions under it.

Basic Usage

<x-aura::assistant-message author="Aura" model="claude-opus-5" time="just now" :streaming="$streaming">
    {!! $reply !!}

    <x-slot:actions>
        <x-aura::replay-button />
    </x-slot:actions>
</x-aura::assistant-message>

Why streaming matters

While streaming is true the content region is aria-busy. A live region that fires on every fragment makes a screen reader read the same growing sentence over and over — the single most common way an AI interface becomes unusable without a screen. Set it false when the stream ends and the finished reply is announced once, whole.

Props

Prop Type Default Description
author string|null null Defaults to the translated "Assistant".
avatar string|null null Falls back to a sparkle badge.
time string|null null Shown beside the author.
datetime string|null null ISO 8601 for the <time> element.
streaming bool false Holds the announcement until the reply is complete.
error string|null null Rendered as an alert under the message.
model string|null null Small badge beside the author.

Slots

Slot Description
default The reply.
actions Copy, retry, rate — anything acting on this turn.

Accessibility

  • The turn is an <article> named by its own author line.
  • An error is role="alert", not a polite update: waiting for a reply that will never arrive is the worst state to leave someone in, and it deserves the interruption.