{# Alert & Loading State Macros ============================ Reusable components for alerts, loading states, and notifications. Usage: {% from 'shared/macros/alerts.html' import loading_state, error_state, alert %} {{ loading_state('Loading vendors...') }} {{ error_state('Error loading data', 'error') }} {{ alert('success', 'Success!', 'Your changes have been saved.') }} #} {# Loading State ============= Shows a centered loading spinner with message. Parameters: - message: Text to display below the spinner (default: 'Loading...') - show_condition: Alpine.js condition for x-show (default: 'loading') #} {% macro loading_state(message='Loading...', show_condition='loading') %}
{{ message }}
{{ title }}
{{ title }}
{% endif %} {% if message %}{{ message }}
{% endif %}{{ title }}
{% endif %}