DevactionUI.Aura (devaction_ui v0.1.0)

Copy Markdown View Source

A turning ring of light around something, for the AI at work. It wraps its content, which keeps its own surface; the ring is the wrapper's padding, painted by a conic gradient whose angle is animated.

tone picks the color (:ai amber, :learning violet, :ok, :risk). variant is :spin (one light going round), :dual (two tones going round, the second one learning) or :glow (no ring, a halo that breathes). size is the ring's width. The animation stops under prefers-reduced-motion, leaving the ring still.

Summary

Functions

aura(assigns)

Attributes

  • tone (:atom) - Defaults to :ai. Must be one of :ai, :learning, :ok, or :risk.
  • variant (:atom) - Defaults to :spin. Must be one of :spin, :dual, or :glow.
  • size (:atom) - Defaults to :sm. Must be one of :xs, :sm, or :lg.
  • class (:any) - Defaults to nil.
  • Global attributes are accepted.

Slots

  • inner_block (required)