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" />