Skip to main content
You are currently viewing the documentation for Filament 3.x, which is a previous version of Filament.Looking for the current stable version? Visit the 5.x documentation.

Overview

You may want to separate your entries into sections, each with a heading and description. To do this, you can use a section component:
You can also use a section without a header, which just wraps the components in a simple card:
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 the headerActions() method:
Make sure the section has a heading or ID
In addition to header actions, you may add actions to the section’s footer using the footerActions() method:
Make sure the section has a heading or ID
Footer actions are aligned to the inline start by default. You may customize the alignment using the footerActionsAlignment() 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 unique id() to the section:

Adding an icon to the section’s header

You may add an icon to the section’s header using the icon() method:

Positioning the heading and description aside

You may use the aside() method to align the heading and description on the left, and the infolist components inside a card on the right:

Collapsing sections

Sections may be collapsible() to optionally hide content in long infolists:
Your sections may be collapsed() by default:

Persisting collapsed sections

You can persist whether a section is collapsed in local storage using the persistCollapsed() method, so it will remain collapsed when the user refreshes the page:
To persist the collapse state, the local storage needs a unique ID to store the state. This ID is generated based on the heading of the section. If your section does not have a heading, or if you have multiple sections with the same heading that you do not want to collapse together, you can manually specify the 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 the columns() method to easily create a grid within the section: