FilterMenu API

API reference docs for theFilterMenucomponent. For examples and details on the usage of this component, visit the component demo page.

Props

PropsTypeDescriptionDefault
children((menuState: { isMenuOpen: boolean; triggerProps: TriggerProps }) => ReactNode) | ReactNodeAccepts either a React node or a render function. The render function provides the menu's state (isMenuOpen) and accessibility/interaction props (triggerProps) for the trigger._
closeButtonPropsForMobile?{ label: string, onClick: () => void, size?: IconButtonProps['size'] }Props for the close button that appears on mobile._
mobileFriendly?booleanIndicates whether the filter menu should be displayed as a sheet on mobile devices.true
popoverMatchReferenceWidth?booleanMatch the width of the popover with the reference element.false
popoverMaxHeight?numberThe max height of the filter menu popover.356
popoverMaxWidth?numberThe max width of the filter menu popover.400
popoverOffset?numberThe offset of the filter menu popover.4
popoverPlacement?'bottom' | 'bottom-start' | 'bottom-end'The placement of the filter menu popover in relation to the trigger.'bottom-start'
strategy?'absolute' | 'fixed'The strategy used to position the floating element.'absolute'
titleForMobile?stringIf titleForMobile is provided then the mobile sheet view will have a header with title rendered_