FilterChip
A compact, interactive element for filtering data with various input types.
Usage
The FilterChip component provides a compact way to filter data with support for different input types like select, date, and text.
FilterChip Props
Prop | Type | Default |
---|---|---|
label | string | - |
value | string | - |
columnType | "select" | "date" | "text" | - |
options | { label: string; value: string; }[] | - |
onValueChange | (value: string) => void | - |
onOperationChange | (operation: string) => void | - |
leadingIcon | ReactNode | - |
onRemove | () => void | - |
className | string | - |
Examples
Input Types
FilterChip supports three different input types to handle various filtering needs.
With Leading Icon
FilterChip can display an icon before the label to provide visual context.
With Remove Action
FilterChip can include a remove action to allow users to dismiss the filter.