livewire / flux

The official Livewire UI component library
https://fluxui.dev
485 stars 42 forks source link

Not possible to conditionally change the variant of a radio group #650

Closed RezaODB closed 1 week ago

RezaODB commented 1 week ago
<flux:radio.group :variant="count($question->options) < 5 ? 'segmented' : ''"   :label="$question->label" >
@foreach ($question->options as $key => $option)
<flux:radio :value="$option" wire:key="{{ $key }}" :label="$option" />
@endforeach
</flux:radio.group>

Am I doing something wrong?