Visibility of multiple fields

Hey guys, I am new to Filament and I was wondering is there a option to control visibility of multiple fields one below each other? I guess I am asking for some kind of wrapper where I can call visible() or hidden() on. I read that there is Section but I don't want to create a new section. One other option is to extract the callback and use it in every field (3 times if I have 3 fields)

Pseudo code what I am looking for

Select::make('my_field')

Wrapper::make([
  Select::make(...)
  Text::make(...)
  Text::make(...)
])->visible(function (Get $get) {
    return $get('my_field') === 'value')
})


Cheers!
Bobby
Solution
You can use a Group instead of a Section
Was this page helpful?