Layout components:
Define Layout
#[Layout('layouts.app')]
class Dashboard extends Component
{
public function render()
{
return view('livewire.dashboard');
}
}Layout File
<!-- layouts/app.blade.php -->
<html>
<body>
<nav>...</nav>
{{ $slot }}
<footer>...</footer>
</body>
</html>With Title
#[Layout('layouts.app')]
#[Title('Dashboard')]
class Dashboard extends Component {}Dynamic Title
public function render()
{
return view('livewire.post')
->title($this->post->title);
}