PtahUi.Components.Loading (PtahUI v0.1.0)

Copy Markdown View Source

Loading indicator with multiple animation styles and sizes.

Color is controlled by the class attribute using Tailwind text-color utilities, since the animations use currentColor.

Example

<.loading type="spinner" size="md" class="text-indigo-600" />
<.loading type="dots" size="lg" class="text-gray-400" />

Summary

Functions

loading(assigns)

Attributes

  • type (:string) - Animation style. Defaults to "spinner".
  • size (:string) - Defaults to "md".
  • class (:string) - Defaults to nil.
  • Global attributes are accepted.