Using ->extraAttributes() to change Form Component

I tried to apply some classes to the ToggleButtons component but with no success. Initially my goal was to make the edges more round, but after that didnt work, I tried to apply margin to the component (as a test) but that didnt work either. Am I missing something or applying the wrong key to the array?

ToggleButtons::make('status')
    ->grouped()
    ->extraAttributes(['class'=>'mt-10'])
    ->options([
        'draft' => 'Draft',
        'scheduled' => 'Scheduled',
        'published' => 'Published'
    ])
    ->icons([
        'draft' => 'heroicon-o-pencil',
        'scheduled' => 'heroicon-o-clock',
        'published' => 'heroicon-o-check-circle',
    ]),
image.png
Solution
Merged
Was this page helpful?