Home API Tools Posts Hire Me About
Sign In Create Account
Livewire

Building Tabs with Livewire v4

February 01, 2026 1 min read 22 views

Build a tabbed interface.

Component

@php
use Livewire\Attributes\Url;

new class extends Livewire\Component {
    #[Url]
    public string $activeTab = 'overview';
}
@endphp

@if($activeTab === 'overview')
Overview content
@endif
Share this post:

Related Posts

Comments (0)

Please log in to leave a comment. Log in

No comments yet. Be the first to comment!