# `LedgerUI.Components.Aura`
[🔗](https://github.com/devaction-labs/ledger_ui/blob/v0.2.0/lib/ledger_ui/components/aura.ex#L1)

Ring of light that runs along the border of any element while something works in the background.

    <.aura tone="ai"><div class="lu-tcard">…</div></.aura>
    <.aura tone="ai" radius="pill" width="sm"><button>Summarize</button></.aura>
    <.aura mode="glow" tone="warn" shadow>…needs you…</.aura>

`mode` is `spin` (a light turns while it works), `dual` (two colours, a result is ready) or
`glow` (pulses when it needs the person). The ring stops for `prefers-reduced-motion`.

# `aura`

## Attributes

* `mode` (`:string`) - Defaults to `"spin"`. Must be one of `"spin"`, `"dual"`, or `"glow"`.
* `motion` (`:string`) - Alias of `mode`. Defaults to `nil`. Must be one of `nil`, `"spin"`, `"dual"`, or `"glow"`.
* `tone` (`:string`) - Defaults to `"accent"`. Must be one of `"accent"`, `"ai"`, `"info"`, `"pos"`, `"warn"`, `"neg"`, or `"violet"`.
* `width` (`:string`) - Defaults to `"default"`. Must be one of `"xs"`, `"sm"`, `"default"`, or `"lg"`.
* `radius` (`:string`) - Defaults to `"default"`. Must be one of `"default"`, `"pill"`, or `"r12"`.
* `shadow` (`:boolean`) - Defaults to `false`.
* `class` (`:any`) - Defaults to `nil`.
* Global attributes are accepted.
## Slots

* `inner_block` (required)

---

*Consult [api-reference.md](api-reference.md) for complete listing*
