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