Filter
Filter component router supporting three types: checkbox (multi-select), ratio (range slider), and date (date picker). Each type has its own variant implementation with specific props.Import
Filter Types
The Filter component supports three types:checkbox, ratio, and date. Props vary based on type.
Checkbox Filter
Multi-select or single-select filter with search functionality.Props
Filter type for checkbox variant
Unique identifier for the filter
Placeholder text for the filter button
Array of checkbox options
Currently selected options
Callback when selection changes
Shape of the checkbox boxes
Disables the filter
Position of dropdown menu
Custom styles for the container
CheckboxOption
Unique identifier
Display label
Secondary label text
Usage
Date Filter
Date range picker filter.Props
Filter type for date variant
Unique identifier for the filter
Placeholder text for the filter button
Currently selected date range
Callback when date range changes
Disables the filter
Position of dropdown menu
Custom styles for the container
Usage
Ratio Filter
Range slider filter for numeric values.Props
Filter type for ratio variant
Unique identifier for the filter
Placeholder text for the filter button
Minimum value for the range
Maximum value for the range
Unit label (e.g., “km”, ”$”)
Currently selected value
Callback when value changes
Disables the filter
Position of dropdown menu
Custom styles for the container
Usage
Common Features
- All filter types show as rounded pill buttons
- Selected filters display with primary border and show current value
- Click X icon to clear filter
- Opens modal on mobile, dropdown on desktop
- Includes “Borrar” (Clear) and “Aplicar” (Apply) buttons
- Auto-closes when clicking outside
- Checkbox filter includes search functionality