Skip to content
Components

Filter menu

A component used to apply category-specific filters for a dataset.

First, import the component.

import {FilterMenu} from '@pleo-io/telescope'

Then use it like so:

See the examples for more guidance.

Contains all of the filter menu parts.

PropTypeDefault
onClose
function
onOpen
function

A wrapper around the toggle component that takes care of opening the filter menu. Exposed in case a custom toggle element is needed.

This component doesn't accept any custom props.

The button that toggles the filter menu. Should contain the filter category.

PropTypeDefault
hasAppliedFilters
boolean
loading
boolean
loadingText
string
maxWidth
string
moreFilters
boolean
numAppliedFilters
number
skeleton
boolean
false

Place filtering elements (checboxes, search fields, etc.) within this component.

PropTypeDefault
align
enum
start

Container for "Clear" and "Apply" actions.

This component doesn't accept any custom props.

Button that should be used to clear interim filters. Clicking this button should not be used to change which filters are applied and should thus not update the page results.

This component doesn't accept any custom props.