Skip to content

Header and Footer

The DropdownMenu component supports header and footer sections using the DropdownMenu.Header and DropdownMenu.Footer components. This allows you to add additional content at the top or bottom of the dropdown menu.

Properties

The Header component represents a header section with a separator.

<DropdownMenu.Header
className="my-class" // [OPTIONAL] custom class
>
{/* Header content */}
</DropdownMenu.Header>
Prop
Required
Default
Type
classNamefalsestring
childrentrueReactNode

The Footer component represents a footer section with a separator.

<DropdownMenu.Footer
className="my-class" // [OPTIONAL] custom class
>
{/* Footer content */}
</DropdownMenu.Footer>
Prop
Required
Default
Type
classNamefalsestring
childrentrueReactNode