Filtering Enum Options

How would one filter enum options? I don't want to include all enum options; only a subset.

ToggleButtons::make('recipient')
    ->options([
        Party::OWNER,
        Party::TENANT,
    ])


This gives an exception:
Filament\Forms\Components\ToggleButtons::isOptionDisabled(): Argument #2 ($label) must be of type string, App\Enums\Party given

I've seen seen the option, disableOptionWhen, but I don't want to disable the option, I want to hide it entirely from view.

Additionally, I can always do a rigmarole of collection(..enum)->filter within options but that will eliminate icons, colors, and labels defined in the enum.
Was this page helpful?