+use Livewire\Attributes\Layout; use Livewire\Component; +#[Layout('layouts.sidebar')] class YourLivewireComponent extends Component { public function render() { return view('livewire.your-livewire-component'); } }
+use Livewire\Attributes\Layout; use Livewire\Component; +#[Layout('layouts.sidebar-header')] class YourLivewireComponent extends Component { public function render() { return view('livewire.your-livewire-component'); } }