Raxol.Components.Progress.Spinner (Raxol v0.3.0)

View Source

A spinner component that provides animated loading indicators.

Props

  • :style - The animation style to use (default: :dots)
  • :dots - Rotating dots (⠋⠙⠹⠸⠼⠴⠦⠧⠇⠏)
  • :line - Rotating line (|/-)
  • :bounce - Bouncing ball (⠁⠂⠄⠂)
  • :pulse - Pulsing circle (●○)
  • :custom - Custom animation using :frames
  • :frames - List of characters to use for custom animation
  • :colors - List of colors to transition between
  • :speed - Animation speed in milliseconds (default: 80)
  • :text - Optional text to display next to the spinner
  • :text_position - Position of text relative to spinner (:left or :right, default: :right)

Summary

Functions

broadcast(msg)

command(cmd)

error(text \\ "Error")

loading(text \\ "Loading")

mount(state)

Callback implementation for Raxol.UI.Components.Base.Component.mount/1.

processing(text \\ "Processing")

saving(text \\ "Saving")

schedule(msg, delay)

unmount(state)

Callback implementation for Raxol.UI.Components.Base.Component.unmount/1.