LogoLogo
InstallSource CodeIssuesSupport
v1.x
v1.x
  • Introduction
  • Essentials
    • Installation
    • Configuration
    • Creating Components
    • Rendering Views
    • Data Properties
    • Actions
    • Events
    • Lifecycle Events
  • Component Features
    • Redirecting
    • Logging
  • Templates
    • Loading States
    • Polling
    • Prefetching
    • Offline State
    • Dirty States
    • Defer Loading
  • JS Integrations
    • AlpineJS
    • Inline Scripts
  • Testing
  • Security
  • Troubleshooting
  • CommandBox Commands
Powered by GitBook
On this page

Was this helpful?

  1. Templates

Offline State

CSS Classes

You can append .class to your wire:offline annotations and specify a CSS class to toggle when the user is offline.

<div wire:offline.class="bg-gold-300"></div>

You can also specify classes you want to be removed when offline using :wire:offline.class.remove.

<div wire:offline.class.remove="bg-gold-300" class="bg-gold-300"></div>
PreviousPrefetchingNextDirty States

Last updated 3 years ago

Was this helpful?