Skip to content

[tabs] use :current for custom activation #580

Closed Answered by ArvidDeJong
ArvidDeJong asked this question in Feature Requests
Discussion options

You must be logged in to vote

I'm not sure why it didn't work before, but it's working fine now:

<flux:tabs class="mt-8 px-4" wire:model="showTab">
    <flux:tab name="active" wire:click="$set('showTab','active')">
        Active
    </flux:tab>
    <flux:tab name="trashed" wire:click="$set('showTab','trashed')">
        Trashed 
        <flux:badge color="zinc">
            {{ $trashed }}
        </flux:badge>
    </flux:tab>
</flux:tabs>

Replies: 2 comments 4 replies

Comment options

You must be logged in to vote
4 replies
@ArvidDeJong
Comment options

@jeffchown
Comment options

@ArvidDeJong
Comment options

@ju5t
Comment options

Comment options

You must be logged in to vote
0 replies
Answer selected by joshhanley
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
3 participants