Overview
You may want to separate your fields into sections, each with a heading and description. To do this, you can use a section component:Adding actions to the section’s header or footer
Sections can have actions in their header or footer.Adding actions to the section’s header
You may add actions to the section’s header using theheaderActions() method:
Make sure the section has a heading or ID
Adding actions to the section’s footer
In addition to header actions, you may add actions to the section’s footer using thefooterActions() method:
Make sure the section has a heading or ID
Aligning section footer actions
Footer actions are aligned to the inline start by default. You may customize the alignment using thefooterActionsAlignment() method:
Adding actions to a section without heading
If your section does not have a heading, Filament has no way of locating the action inside it. In this case, you must pass a uniqueid() to the section:
Adding an icon to the section’s header
You may add an icon to the section’s header using theicon() method:
Positioning the heading and description aside
You may use theaside() to align heading & description on the left, and the form components inside a card on the right:
Collapsing sections
Sections may becollapsible() to optionally hide content in long forms:
collapsed() by default:
Persisting collapsed sections
You can persist whether a section is collapsed in local storage using thepersistCollapsed() method, so it will remain collapsed when the user refreshes the page:
id() of that section to prevent an ID conflict:
Compact section styling
When nesting sections, you can use a more compact styling:Using grid columns within a section
You may use thecolumns() method to easily create a grid within the section: