php artisan aura:add blockquote
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.
Overview
<x-aura::blockquote> renders the quote inside <figure> with the attribution in <figcaption>.
That structure is deliberate: the author's name is about the quotation, it is not part of what was said. Putting it inside <blockquote> tells a screen reader that the speaker quoted their own name.
Basic Usage
That brain of mine is something more than merely mortal, as time will show.
<x-aura::blockquote author="Ada Lovelace">
That brain of mine is something more than merely mortal, as time will show.
</x-aura::blockquote><x-aura::blockquote author="Ada Lovelace" cite="https://example.com/letters">
That brain of mine is something more than merely mortal.
</x-aura::blockquote>
Props
| Prop | Type | Default | Description |
|---|---|---|---|
author |
string|null |
null |
Attribution, rendered as the caption. |
cite |
string|null |
null |
URL of the source, placed on the cite attribute. |
Notes
cite is metadata: browsers do not display it. If the source should be clickable, put a Link in the author slot as well.