# Shared UI Components ## Blade Components (Reusable) ### 1. `x-action-message` **Path:** `resources/views/components/action-message.blade.php` Displays a temporary status message that auto-hides after 2 seconds using Alpine.js. **Props:** - `on`: Event name to listen for (Livewire event) **Features:** - Transition animation with fade-out - Auto-hide timeout (2000ms) - Default text: "Saved." ```blade @props([ 'on', ])
``` --- ### 2. `x-app-logo` **Path:** `resources/views/components/app-logo.blade.php` Main app branding component. Renders as `flux:brand` (header) or `flux:sidebar.brand` (sidebar variant). **Props:** - `sidebar` (bool): If true, renders sidebar variant - Inherits Flux component attributes **Features:** - Dynamic logo rendering based on context (header vs sidebar) - Uses `x-app-logo-icon` for icon - Passes through attributes to Flux components ```blade @props([ 'sidebar' => false, ]) @if($sidebar)