FilterMenuTrigger API
API reference docs for theFilterMenuTrigger
component. For examples and details on the usage of this component, visit the component demo page.
Props
The FilterMenuTrigger
component is a customizable trigger for a filter menu, built using the Button component. It inherits some Button props and adds few more additional functionalities.
Prop | Type | Description | Default |
---|---|---|---|
children? | ReactNode | The content to be displayed inside the button. | _ |
form? | string | Specifies the form element the button is associated with. | _ |
iconEnd? | ReactNode | The icon to display after the button children. | _ |
iconStart? | ReactNode | The icon to display before the button children. | _ |
isLoading? | boolean | If true, the button will display a loading indicator. | false |
isPressed? | boolean | If true, the button will be visually styled as pressed and the aria-pressed attribute will be set accordingly. | false |
loadingLabel? | string | Text to read out to assistive technologies when button is loading. | _ |
onBlur? | function | Function to call when the button loses focus. | _ |
onFocus? | function | Function to invoke when the button receives focus. | _ |
onKeyDown? | function | Function to invoke when a key is pressed while the button is focused. | _ |
placeholder? | string | Displays a placeholder text when no children is provided. | _ |