Closed khanakia closed 2 months ago
Why don't you use suffix / prefix actions? And the color you can change using the color
method on the actions.
Would you happen to have an example?
I do not want to change the color it is just a Slug Generate Button which will take the name of the post and set the slug into the slug TextInput
I'd do something like this:
Cluster::make([
Forms\Components\TextInput::make("name")
->maxLength(255)
->required()
->suffixAction(Forms\Components\Actions\Action::make('Generate Slug')
->icon('heroicon-s-bolt')
->iconButton()
),
]),
https://filamentphp.com/docs/3.x/forms/actions#adding-an-affix-action-to-a-field
Actually in your case, if you only want an action next to a text input, you don't need Clusters at all.
Thanks
What happened?
I want to input Group with the button on the right it's not working
There is also no documentation I could find
How to reproduce the bug
Package Version
latest
PHP Version
8.2.-
Laravel Version
11
Which operating systems does with happen with?
macOS
Notes
No response