Below is my code for creating a modal form. How can I customize its width? I’d like to be a bit smaller
->createOptionForm([
FormsComponentsTextInput::make('name')
->required()
->maxLength(255)
->unique(modifyRuleUsing: function (Unique $rule) {
return $rule->where('user_id', auth()->id());
}),
FormsComponentsTextInput::make('stock')
->required()
->integer()
->minValue(1)
->maxLength(255),
])
2
Answers
You can use grid that gives ability to create column(s) inside it
For details; https://filamentphp.com/docs/3.x/forms/layout/grid
If the PR I made is accepted, you can do it this way:
* I’ll update the answer when the PR is accepted and/or this is added to the documentation