Filter Panel

Beta2.3.0

The filter panel renders a set of filter controls and tracks the user's selections. You use that selection to filter your data.

import {FilterPanel} from "@qualcomm-ui/react/filter-panel"

Defining Filters

Filters are declared up front with defineFilters. Each key becomes the filter's id. Each value is a filter definition.

import {defineFilters, listFilter} from "@qualcomm-ui/core/filters"
import {ListCollection} from "@qualcomm-ui/utils/collection"

export const filters = defineFilters({
  architecture: listFilter({
    collection: new ListCollection({items: ["arm64", "x86-64"]}),
    label: "Architecture",
  }),
  platform: listFilter({
    collection: new ListCollection({items: ["Linux", "macOS", "Windows"]}),
    label: "Platform",
  }),
  status: listFilter({
    collection: new ListCollection({items: ["Failed", "Passed", "Queued"]}),
    label: "Status",
  }),
})

The utility sets the filter's label, collection, and value type. The control renders it inside FilterPanel.Filter. The controls are documented on the Filter Controls page.

<FilterPanel.Root className="w-72" filters={filters}>
  <FilterPanel.Filter filter={filters.status}>
    <CheckboxGroupFilter />
  </FilterPanel.Filter>
  <FilterPanel.Filter filter={filters.architecture}>
    <RadioGroupFilter />
  </FilterPanel.Filter>
  <FilterPanel.Filter filter={filters.platform}>
    <CheckboxGroupFilter />
  </FilterPanel.Filter>
</FilterPanel.Root>

Examples

Automatic Updates

By default, every change is committed as it happens and calls onValueChange.

Filters
Desktop
Linux
macOS
Windows
{}
<FilterPanel.Root
  className="w-72"
  filters={filters}
  onValueChange={setValue}
>
  <FilterPanel.Header>
    <FilterPanel.Heading>
      Filters <FilterPanel.Count />
    </FilterPanel.Heading>
    <FilterPanel.ClearButton />
  </FilterPanel.Header>
  <FilterPanel.Filter filter={filters.status}>
    <CheckboxGroupFilter />
  </FilterPanel.Filter>
  <FilterPanel.Filter filter={filters.architecture}>
    <RadioGroupFilter />
  </FilterPanel.Filter>
  <FilterPanel.Filter filter={filters.platform}>
    <CheckboxTreeFilter defaultExpandedValue={["desktop"]} />
  </FilterPanel.Filter>
</FilterPanel.Root>

Manual Apply

Set applyMode to manual to stage changes in a draft. FilterPanel.ApplyButton commits the draft and calls onValueChange.

Filters
Desktop
Linux
macOS
Windows
{}
<FilterPanel.Root
  applyMode="manual"
  className="w-72"
  filters={filters}
  onValueChange={setValue}
>
  <FilterPanel.Header>
    <FilterPanel.Heading>
      Filters <FilterPanel.Count />
    </FilterPanel.Heading>
    <FilterPanel.ClearButton />
  </FilterPanel.Header>
  <FilterPanel.Filter filter={filters.status}>
    <CheckboxGroupFilter />
  </FilterPanel.Filter>
  <FilterPanel.Filter filter={filters.architecture}>
    <RadioGroupFilter />
  </FilterPanel.Filter>
  <FilterPanel.Filter filter={filters.platform}>
    <CheckboxTreeFilter defaultExpandedValue={["desktop"]} />
  </FilterPanel.Filter>
  <FilterPanel.Footer>
    <FilterPanel.ApplyButton />
  </FilterPanel.Footer>
</FilterPanel.Root>

Controlled State

Set the initial selection using the defaultValue prop, or use value and onValueChange to control it manually. These props follow our controlled state pattern.

{
"status": [
"Failed"
]
}
<FilterPanel.Root
  className="w-72"
  filters={filters}
  onValueChange={setValue}
  value={value}
>
  <FilterPanel.Filter filter={filters.status}>
    <CheckboxGroupFilter />
  </FilterPanel.Filter>
  <FilterPanel.Filter filter={filters.owner}>
    <ComboboxFilter />
  </FilterPanel.Filter>
</FilterPanel.Root>

Manual & Controlled State

In manual mode, value is the applied (saved) selection and draftValue refers to the panel's staged changes. They only differ in manual mode, until the draft is applied.

Setting value from outside the panel replaces the draft, including any unapplied changes.

{
"status": [
"Failed"
]
}
<FilterPanel.Root
  applyMode="manual"
  className="w-72"
  filters={filters}
  onValueChange={setValue}
  value={value}
>
  <FilterPanel.Filter filter={filters.status}>
    <CheckboxGroupFilter />
  </FilterPanel.Filter>
  <FilterPanel.Filter filter={filters.architecture}>
    <RadioGroupFilter />
  </FilterPanel.Filter>
  <FilterPanel.Footer>
    <FilterPanel.ApplyButton />
  </FilterPanel.Footer>
</FilterPanel.Root>

Labels

The definition's label is the filter's name everywhere: the section heading, the control's accessible name, and getFilterLabel.

To change how a single section heading renders, pass label to FilterPanel.Filter. It accepts a ReactNode, or a function that receives the definition's label. The rendered heading also names the control, but summaries keep the definition's label.

<FilterPanel.Root className="w-72" filters={filters}>
  <FilterPanel.Filter
    filter={filters.status}
    label={(label) => (
      <>
        {label}{" "}
        <span className="font-body-xs text-neutral-secondary">
          (last run)
        </span>
      </>
    )}
  >
    <CheckboxGroupFilter />
  </FilterPanel.Filter>
</FilterPanel.Root>

Loading Options

To load a filter's options from an API, leave collection off its definition. Use the getFilterCollection callback to provide the collection. Load the data elsewhere, like with a query library, and return undefined until it arrives. A filter without a collection shows no options.

The panel doesn't show loading or error states. Render them yourself. This example shows a progress ring next to the filter label, through the label prop, while the request is pending. If the request fails, an error message with a Retry button replaces the control.

<FilterPanel.Root
  className="w-72"
  filters={filters}
  getFilterCollection={(id) => (id === "owner" ? owners.data : undefined)}
>
  <FilterPanel.Filter
    filter={filters.owner}
    label={(label) => (
      <span className="inline-flex items-center gap-2">
        {label}
        {owners.isPending ? (
          <ProgressRing aria-label="Loading owners" size="xs" />
        ) : null}
      </span>
    )}
  >
    {owners.isError ? (
      <div className="flex items-center gap-2">
        <span className="font-body-xs text-neutral-secondary">
          Could not load owners
        </span>
        <Button
          onClick={() => void owners.refetch()}
          size="sm"
          variant="ghost"
        >
          Retry
        </Button>
      </div>
    ) : (
      <CheckboxGroupFilter />
    )}
  </FilterPanel.Filter>
</FilterPanel.Root>

Restoring a Selection

A selection restored from a URL like /builds?owner=u2 may only contain value ids. Anything that shows the selection outside the panel, like these chips, should wait for the collection data before calling getValueItems.

<FilterPanel.RootProvider className="w-72" value={filterSet}>
  <FilterPanel.Filter
    filter={filters.owner}
    label={(label) => (
      <span className="inline-flex items-center gap-2">
        {label}
        {owners.isPending ? (
          <ProgressRing aria-label="Loading owners" size="xs" />
        ) : null}
      </span>
    )}
  >
    <CheckboxGroupFilter />
  </FilterPanel.Filter>
</FilterPanel.RootProvider>
<div className="flex min-w-60 flex-1 flex-wrap gap-2">
  {owners.isPending ? (
    <ProgressRing aria-label="Loading selected owners" size="xs" />
  ) : (
    filterSet.getValueItems("owner").map((item) => (
      <Tag
        key={item.value}
        onDismiss={() =>
          filterSet.removeFilterValue("owner", item.value)
        }
        variant="dismissable"
      >
        {item.label}
      </Tag>
    ))
  )}
</div>

Filter Counts

To show the number of results next to each filter option, provide the counts with the getFilterOptionCounts callback. Unselected checkbox and radio options with a count of 0 are disabled.

<FilterPanel.Root
  filters={filters}
  getFilterOptionCounts={(id) => response.facets[id]}
>

When you have access to the entire dataset up front, you can use our FacetIndex utility to compute option counts that adjust based on filter selection.

  • android-arm64
  • android-x86
  • ios-simulator
  • linux-gcc
  • linux-clang
  • windows-msvc
  • windows-arm64
  • macos-arm64
<FilterPanel.Root
  className="w-72"
  filters={filters}
  onValueChange={setValue}
  value={value}
  {...facetProps}
>
  <FilterPanel.Filter filter={filters.name}>
    <TextInputFilter />
  </FilterPanel.Filter>
  <FilterPanel.Filter filter={filters.status}>
    <CheckboxGroupFilter />
  </FilterPanel.Filter>
  <FilterPanel.Filter filter={filters.architecture}>
    <RadioGroupFilter />
  </FilterPanel.Filter>
</FilterPanel.Root>
<ul className="text-neutral-primary font-body-md min-w-60 flex-1">
  {builds
    .filter((build) => ids.includes(build.id))
    .map((build) => (
      <li key={build.id}>{build.name}</li>
    ))}
</ul>

In manual mode, counts follow the draft, so they update before the user applies.

Dynamic Filter Counts

A FacetIndex can only count the items you give it. When working with an external data source, we recommend sending a separate unfiltered request once at the start of your search experience. This approach requires the unfiltered query to return every available option. Every option then stays in its list, even as the filters narrow the results.

When the full dataset is too large to fetch, compute only the counts on the server and send those instead. If you're using a proper search index like Open/Elastic Search, this is typically accomplished with Term Aggregations.

This example uses TanStack Query, with a mock endpoint in place of a search API.

Builds:
<FilterPanel.Root
  className="w-72"
  filters={filters}
  getFilterCollection={(id) => facets.data?.getFilterCollection(id)}
  getFilterOptionCounts={(id, values) =>
    facets.data?.getFilterOptionCounts(id, values)
  }
  onValueChange={setValue}
  value={value}
>
  <FilterPanel.Filter
    filter={filters.status}
    label={(label) => (
      <span className="inline-flex items-center gap-2">
        {label}
        {facets.isPending ? (
          <ProgressRing aria-label="Loading statuses" size="xs" />
        ) : null}
      </span>
    )}
  >
    <CheckboxGroupFilter />
  </FilterPanel.Filter>
  <FilterPanel.Filter
    filter={filters.platform}
    label={(label) => (
      <span className="inline-flex items-center gap-2">
        {label}
        {facets.isPending ? (
          <ProgressRing aria-label="Loading platforms" size="xs" />
        ) : null}
      </span>
    )}
  >
    <CheckboxGroupFilter />
  </FilterPanel.Filter>
</FilterPanel.Root>

Neither filter has a collection, so each lists the values of its field from the index. Until the index loads, the filters have no options, so each shows a progress ring next to its label.

Hoisted State

FilterPanel.Root handles the filter set state internally. Use useFilterSet with FilterPanel.RootProvider to own that state in your component, where code outside the panel can read and change it.

const filterSet = useFilterSet({filters})

return (
  <div className="flex w-full max-w-3xl flex-wrap items-start gap-6">
    <FilterPanel.RootProvider className="w-72" value={filterSet}>
      <FilterPanel.Filter filter={filters.status}>
        <CheckboxGroupFilter />
      </FilterPanel.Filter>
      <FilterPanel.Filter filter={filters.owner}>
        <ComboboxFilter />
      </FilterPanel.Filter>
    </FilterPanel.RootProvider>
    <div className="flex min-w-60 flex-1 flex-wrap gap-2">
      {filterSet.getValueItems().map((item) => (
        <Tag
          key={`${item.filterId}:${item.value}`}
          onDismiss={() =>
            filterSet.removeFilterValue(item.filterId, item.value)
          }
          variant="dismissable"
        >
          {item.label}
        </Tag>
      ))}
    </div>
  </div>
)

The state lives in the component that calls useFilterSet. This way, the panel can unmount without losing the selection, like in a drawer:

<Drawer.Root
  onOpenChange={(open) => {
    if (!open) {
      // apply draft values when the drawer closes
      filterSet.apply()
    }
  }}
  unmountOnExit
>
  <Drawer.Trigger>
    <Button variant="outline">Filters ({filterSet.valueCount})</Button>
  </Drawer.Trigger>
  <Drawer.FloatingPortal>
    <Drawer.Body>
      <Drawer.Heading>Filters</Drawer.Heading>
      <Drawer.CloseButton />
      <FilterPanel.RootProvider value={filterSet}>
        <FilterPanel.Filter filter={filterSet.filters.status}>
          <CheckboxGroupFilter />
        </FilterPanel.Filter>
        <FilterPanel.Filter filter={filterSet.filters.owner}>
          <ComboboxFilter />
        </FilterPanel.Filter>
      </FilterPanel.RootProvider>
    </Drawer.Body>
  </Drawer.FloatingPortal>
</Drawer.Root>
{filterSet.getValueItems().map((item) => (
  <Tag
    key={`${item.filterId}:${item.value}`}
    onDismiss={() =>
      filterSet.removeFilterValue(item.filterId, item.value)
    }
    variant="dismissable"
  >
    {item.label}
  </Tag>
))}

Filters in Child Components

In a nested component, use useFilterSetContext to access the closest provider's filter state. For type safety, pass the type of your definitions:

// build-filters.ts
export const filters = defineFilters({...})
export type BuildFilters = typeof filters

// status-filter.tsx
import type {BuildFilters} from "./build-filters"

export function StatusFilter() {
  const {filters} = useFilterSetContext<BuildFilters>()
  return (
    <FilterPanel.Filter filter={filters.status}>
      <CheckboxGroupFilter />
    </FilterPanel.Filter>
  )
}

The type isn't checked against the panel's definitions. In development, a filter warns when its definition is missing from the panel's filters.

Custom Filters

Declare a filter with your own value type using customFilter. isEmptyValue tells the panel when to drop the filter from the value, and getValueItems describes the value in active filter tags.

const filters = defineFilters({
  attachments: customFilter<boolean>({
    getValueItems: () => [{label: "Has attachments", value: "true"}],
    isEmptyValue: (value) => !value,
    label: "Attachments",
  }),
})

Render your custom control inside FilterPanel.Filter. FilterPanel.Filter wraps its child elements with a context provider. Use the useFilter hook to access this context.

{}
<FilterPanel.Root
  className="w-72"
  filters={filters}
  onValueChange={setValue}
>
  <FilterPanel.Filter filter={filters.attachments}>
    <AttachmentsControl />
  </FilterPanel.Filter>
</FilterPanel.Root>

URL Search Params

This example serializes the committed selection to URL search params when the user applies the filter selection.

Desktop
Linux
macOS
Windows
/builds?
import {type ReactElement, useState} from "react"

import {
  defineFilters,
  type FilterValues,
  listFilter,
  treeFilter,
} from "@qualcomm-ui/core/filters"
import {createTreeCollection} from "@qualcomm-ui/core/tree"
import {CodeHighlight} from "@qualcomm-ui/react-mdx/code-highlight"
import {FilterPanel} from "@qualcomm-ui/react/filter-panel"
import {
  CheckboxGroupFilter,
  CheckboxTreeFilter,
  RadioGroupFilter,
} from "@qualcomm-ui/react/filters"
import {ListCollection} from "@qualcomm-ui/utils/collection"

interface PlatformNode {
  id: string
  nodes?: PlatformNode[]
  text: string
}

const platforms = createTreeCollection<PlatformNode>({
  nodeText: "text",
  nodeValue: "id",
  rootNode: {
    id: "ROOT",
    nodes: [
      {
        id: "desktop",
        nodes: [
          {id: "linux", text: "Linux"},
          {id: "macos", text: "macOS"},
          {id: "windows", text: "Windows"},
        ],
        text: "Desktop",
      },
      {
        id: "mobile",
        nodes: [
          {id: "android", text: "Android"},
          {id: "ios", text: "iOS"},
        ],
        text: "Mobile",
      },
    ],
    text: "",
  },
})

const filters = defineFilters({
  architecture: listFilter({
    collection: new ListCollection({items: ["arm64", "x86-64"]}),
    label: "Architecture",
  }),
  platform: treeFilter({collection: platforms, label: "Platform"}),
  status: listFilter({
    collection: new ListCollection({items: ["Failed", "Passed", "Queued"]}),
    label: "Status",
  }),
})

type BuildFilters = FilterValues<typeof filters>

function toSearchParams(value: BuildFilters): URLSearchParams {
  const params = new URLSearchParams()
  for (const status of value.status ?? []) {
    params.append("status", status)
  }
  const [architecture] = value.architecture ?? []
  if (architecture) {
    params.set("architecture", architecture)
  }
  for (const platform of value.platform ?? []) {
    params.append("platform", platform)
  }
  return params
}

export function FilterPanelUsingValueDemo(): ReactElement {
  const [params, setParams] = useState(new URLSearchParams())

  return (
    <div className="flex w-full max-w-3xl flex-wrap items-start gap-6">
      <FilterPanel.Root
        applyMode="manual"
        className="w-72"
        filters={filters}
        onValueChange={(value) => setParams(toSearchParams(value))}
      >
        <FilterPanel.Filter filter={filters.status}>
          <CheckboxGroupFilter />
        </FilterPanel.Filter>
        <FilterPanel.Filter filter={filters.architecture}>
          <RadioGroupFilter />
        </FilterPanel.Filter>
        <FilterPanel.Filter filter={filters.platform}>
          <CheckboxTreeFilter defaultExpandedValue={["desktop"]} />
        </FilterPanel.Filter>
        <FilterPanel.Footer>
          <FilterPanel.ApplyButton />
        </FilterPanel.Footer>
      </FilterPanel.Root>
      <CodeHighlight
        className="min-w-60 flex-1"
        code={`/builds?${params.toString().replaceAll("&", "\n  &")}`}
        language="text"
      />
    </div>
  )
}

API

<FilterPanel.Root>

The root element of the filter panel. Owns the panel's filter set. To share the filter set with content outside the panel, create it with useFilterSet and render FilterPanel.RootProvider instead. Renders a <div> element by default.
FilterPanelRootProps<
TDefs extends FilterDefinitions = FilterDefinitions,
>
PropTypeDefault
The filter definitions, created with defineFilters. Every filter rendered in the filter set must use a definition from this object.
TDefs
Controls when filter changes are committed.
| 'auto'
| 'manual'
"auto"
React children prop.
The initial committed filters. Use when you don't need to control the committed filters.
FilterValues<TDefs>
{}
Resolves the collection of a list or tree filter whose definition has none. Called during render, so it must not fetch. Load the data elsewhere, such as with a query library, and return its data. Return undefined for filters this resolver doesn't handle, or while the data loads. A filter without a collection shows no options.
FilterSetCollectionResolver<TDefs>
Resolves a filter's label when its definition has none. Return undefined to fall back to the filter id.
    (
    id: FilterId<TDefs>,
    ) => string | undefined
    Resolves the result count of each option in a filter, keyed by option value. Called with the selection the controls display, so counts follow the draft in manual mode. Options missing from the counts count 0. Checkbox and radio filters show the counts and disable unselected options with a count of 0. Checkbox tree filters show the counts of their leaves. Return undefined to show no counts for the filter. Not called for range, date, and text filters.
      (
      id: FilterId<TDefs>,
      values: FilterValues<TDefs>,
      ) =>
      | Record<string, number>
      | undefined
      Resolves the bounds of a range filter when its definition has none.
        (
        id: {
        [K in FilterId<TDefs>]: [
        Extract<
        TDefs[K],
        {
        readonly kind: 'range'
        }
        >,
        ] extends [never]
        ? never
        : K
        }[FilterId<TDefs>],
        ) =>
        | {max: number; min: number}
        | undefined
        Additional check for empty filter values, applied after the built-in check for undefined, null, "", [], and unbounded ranges. Empty values remove the filter.
          (
          id: FilterId<TDefs>,
          value: unknown,
          ) => boolean
          Called when the selection the controls display changes. In manual mode, this is every change to the draft, including reset and a new value replacing the draft. Use it to fetch option counts for the draft. In auto mode, it is called with every committed change, after onValueChange.
            (
            value: FilterValues<TDefs>,
            ) => void
            Called when the committed filters change: on apply in manual mode, on every change in auto mode.
              (
              value: FilterValues<TDefs>,
              ) => void
              Allows you to replace the component's HTML element with a different tag or component. Learn more
              | ReactElement
              | ((
              props: object,
              ) => ReactElement)
              The size of the filter panel and its controls.
              | 'sm'
              | 'md'
              | 'lg'
              "md"
              
              The controlled committed filters.
              FilterValues<TDefs>
              Type
              TDefs
              Description
              The filter definitions, created with defineFilters. Every filter rendered in the filter set must use a definition from this object.
              Type
              | 'auto'
              | 'manual'
              Description
              Controls when filter changes are committed.
              Description
              React children prop.
              Type
              FilterValues<TDefs>
              Description
              The initial committed filters. Use when you don't need to control the committed filters.
              Type
              FilterSetCollectionResolver<TDefs>
              Description
              Resolves the collection of a list or tree filter whose definition has none. Called during render, so it must not fetch. Load the data elsewhere, such as with a query library, and return its data. Return undefined for filters this resolver doesn't handle, or while the data loads. A filter without a collection shows no options.
              Type
              (
              id: FilterId<TDefs>,
              ) => string | undefined
              Description
              Resolves a filter's label when its definition has none. Return undefined to fall back to the filter id.
                Type
                (
                id: FilterId<TDefs>,
                values: FilterValues<TDefs>,
                ) =>
                | Record<string, number>
                | undefined
                Description
                Resolves the result count of each option in a filter, keyed by option value. Called with the selection the controls display, so counts follow the draft in manual mode. Options missing from the counts count 0. Checkbox and radio filters show the counts and disable unselected options with a count of 0. Checkbox tree filters show the counts of their leaves. Return undefined to show no counts for the filter. Not called for range, date, and text filters.
                  Type
                  (
                  id: {
                  [K in FilterId<TDefs>]: [
                  Extract<
                  TDefs[K],
                  {
                  readonly kind: 'range'
                  }
                  >,
                  ] extends [never]
                  ? never
                  : K
                  }[FilterId<TDefs>],
                  ) =>
                  | {max: number; min: number}
                  | undefined
                  Description
                  Resolves the bounds of a range filter when its definition has none.
                    Type
                    (
                    id: FilterId<TDefs>,
                    value: unknown,
                    ) => boolean
                    Description
                    Additional check for empty filter values, applied after the built-in check for undefined, null, "", [], and unbounded ranges. Empty values remove the filter.
                      Type
                      (
                      value: FilterValues<TDefs>,
                      ) => void
                      Description
                      Called when the selection the controls display changes. In manual mode, this is every change to the draft, including reset and a new value replacing the draft. Use it to fetch option counts for the draft. In auto mode, it is called with every committed change, after onValueChange.
                        Type
                        (
                        value: FilterValues<TDefs>,
                        ) => void
                        Description
                        Called when the committed filters change: on apply in manual mode, on every change in auto mode.
                          Type
                          | ReactElement
                          | ((
                          props: object,
                          ) => ReactElement)
                          Description
                          Allows you to replace the component's HTML element with a different tag or component. Learn more
                          Type
                          | 'sm'
                          | 'md'
                          | 'lg'
                          Description
                          The size of the filter panel and its controls.
                          Type
                          FilterValues<TDefs>
                          Description
                          The controlled committed filters.

                          useFilterSet

                          Accepts the same state props as FilterPanel.Root and returns the filter set API.

                          FilterSetApi<
                          TDefs extends FilterDefinitions = FilterDefinitions,
                          >
                          PropType
                          Commits the draft. No-op in auto mode.
                            () => void
                            Controls when filter changes are committed.
                            | 'auto'
                            | 'manual'
                            Removes every filter from value and discards the draft.
                              () => void
                              Removes every filter from draftValue. In manual mode, the change is committed by apply.
                                () => void
                                Removes one filter from value. Follows the same rules as setFilterValue.
                                    (
                                    id: FilterId<TDefs>,
                                    ) => void
                                    The selection the controls display. In manual mode, this is the draft, which apply commits to value. In auto mode, it is always equal to value.
                                    FilterValues<TDefs>
                                    The total number of selected values in draftValue. Each array item counts once. Ranges, dates, and text count 1.
                                    number
                                    The filter definitions, from the filters prop. In a nested component, pass their type to useFilterSetContext to read a typed definition, such as useFilterSetContext<typeof filters>().filters.status.
                                    TDefs
                                    Returns a filter's value in draftValue, or undefined when it is not set.
                                        (
                                        id: K,
                                        ) => FilterValues<TDefs>[K]
                                        Returns how many values a filter has in draftValue. Each array item counts once. Ranges, dates, and text count 1.
                                            (
                                            id: FilterId<TDefs>,
                                            ) => number
                                            Returns the collection of a list or tree filter: the definition's collection, otherwise the result of getFilterCollection. Returns undefined when the filter has neither, or when getFilterCollection returns the wrong kind of collection for the filter.
                                                (
                                                id: K,
                                                ) =>
                                                | FilterCollection<
                                                TDefs[K & keyof TDefs]
                                                >
                                                | undefined
                                                Returns the label for a filter. Resolves from the definition, then getFilterLabel, then the id.
                                                    (
                                                    id: FilterId<TDefs>,
                                                    ) => string
                                                    Returns the result count of each option in a filter from getFilterOptionCounts, for the selection in draftValue. Returns undefined when the filter has no counts.
                                                        (
                                                        id: FilterId<TDefs>,
                                                        ) =>
                                                        | Record<string, number>
                                                        | undefined
                                                        Returns the bounds of a range filter from its definition, then getFilterRange.
                                                            (
                                                            id: {
                                                            [K in FilterId<TDefs>]: [
                                                            Extract<
                                                            TDefs[K],
                                                            {
                                                            readonly kind: 'range'
                                                            }
                                                            >,
                                                            ] extends [never]
                                                            ? never
                                                            : K
                                                            }[FilterId<TDefs>],
                                                            ) => Partial<FilterSetRange>
                                                            Returns how many values a filter has in value. Each array item counts once. Ranges, dates, and text count 1.
                                                                (
                                                                id: FilterId<TDefs>,
                                                                ) => number
                                                                Returns one item per selected value in value, for active filter chips. Pass an id to return the items of one filter. Without an id, returns the items of every filter. List and tree filters return one item per option, labeled by the filter's collection, or by the value itself when the collection doesn't contain it. Range, date, and text filters return one item for the whole value.
                                                                    (
                                                                    id?: FilterId<TDefs>,
                                                                    ) => Array<{
                                                                    filterId: FilterId<TDefs>
                                                                    label: string
                                                                    value: string
                                                                    }>
                                                                    Whether a filter has a non-empty value in draftValue.
                                                                        (
                                                                        id: FilterId<TDefs>,
                                                                        ) => boolean
                                                                        Whether draftValue differs from value. Always false in auto mode.
                                                                        boolean
                                                                        Removes one of a filter's values from value, given the value of an item from getValueItems. Range, date, and text filters are cleared. Follows the same rules as setFilterValue.
                                                                            (
                                                                            id: FilterId<TDefs>,
                                                                            value: string,
                                                                            ) => void
                                                                            Discards the draft and restores the committed filters. No-op in auto mode.
                                                                              () => void
                                                                              Sets a filter's value in draftValue. Empty values remove the filter. In manual mode, the change is committed by apply.
                                                                                  (
                                                                                  id: K,
                                                                                  value:
                                                                                  | FilterValues<TDefs>[K]
                                                                                  | ((
                                                                                  prev: FilterValues<TDefs>[K],
                                                                                  ) => FilterValues<TDefs>[K]),
                                                                                  ) => void
                                                                                  Sets a filter's value in value. Empty values remove the filter. In manual mode, the same change is made to the draft, which keeps its other changes.
                                                                                      (
                                                                                      id: K,
                                                                                      value:
                                                                                      | FilterValues<TDefs>[K]
                                                                                      | ((
                                                                                      prev: FilterValues<TDefs>[K],
                                                                                      ) => FilterValues<TDefs>[K]),
                                                                                      ) => void
                                                                                      The committed selection.
                                                                                      FilterValues<TDefs>
                                                                                      The total number of selected values in value. Each array item counts once; ranges, dates, and text count 1. Equal to draftValueCount in auto mode.
                                                                                      number
                                                                                      Type
                                                                                      () => void
                                                                                      Description
                                                                                      Commits the draft. No-op in auto mode.
                                                                                        Type
                                                                                        | 'auto'
                                                                                        | 'manual'
                                                                                        Description
                                                                                        Controls when filter changes are committed.
                                                                                        Type
                                                                                        () => void
                                                                                        Description
                                                                                        Removes every filter from value and discards the draft.
                                                                                          Type
                                                                                          () => void
                                                                                          Description
                                                                                          Removes every filter from draftValue. In manual mode, the change is committed by apply.
                                                                                            Type
                                                                                            (
                                                                                            id: FilterId<TDefs>,
                                                                                            ) => void
                                                                                            Description
                                                                                            Removes one filter from value. Follows the same rules as setFilterValue.
                                                                                                Type
                                                                                                FilterValues<TDefs>
                                                                                                Description
                                                                                                The selection the controls display. In manual mode, this is the draft, which apply commits to value. In auto mode, it is always equal to value.
                                                                                                Type
                                                                                                number
                                                                                                Description
                                                                                                The total number of selected values in draftValue. Each array item counts once. Ranges, dates, and text count 1.
                                                                                                Type
                                                                                                TDefs
                                                                                                Description
                                                                                                The filter definitions, from the filters prop. In a nested component, pass their type to useFilterSetContext to read a typed definition, such as useFilterSetContext<typeof filters>().filters.status.
                                                                                                Type
                                                                                                (
                                                                                                id: K,
                                                                                                ) => FilterValues<TDefs>[K]
                                                                                                Description
                                                                                                Returns a filter's value in draftValue, or undefined when it is not set.
                                                                                                    Type
                                                                                                    (
                                                                                                    id: FilterId<TDefs>,
                                                                                                    ) => number
                                                                                                    Description
                                                                                                    Returns how many values a filter has in draftValue. Each array item counts once. Ranges, dates, and text count 1.
                                                                                                        Type
                                                                                                        (
                                                                                                        id: K,
                                                                                                        ) =>
                                                                                                        | FilterCollection<
                                                                                                        TDefs[K & keyof TDefs]
                                                                                                        >
                                                                                                        | undefined
                                                                                                        Description
                                                                                                        Returns the collection of a list or tree filter: the definition's collection, otherwise the result of getFilterCollection. Returns undefined when the filter has neither, or when getFilterCollection returns the wrong kind of collection for the filter.
                                                                                                            Type
                                                                                                            (
                                                                                                            id: FilterId<TDefs>,
                                                                                                            ) => string
                                                                                                            Description
                                                                                                            Returns the label for a filter. Resolves from the definition, then getFilterLabel, then the id.
                                                                                                                Type
                                                                                                                (
                                                                                                                id: FilterId<TDefs>,
                                                                                                                ) =>
                                                                                                                | Record<string, number>
                                                                                                                | undefined
                                                                                                                Description
                                                                                                                Returns the result count of each option in a filter from getFilterOptionCounts, for the selection in draftValue. Returns undefined when the filter has no counts.
                                                                                                                    Type
                                                                                                                    (
                                                                                                                    id: {
                                                                                                                    [K in FilterId<TDefs>]: [
                                                                                                                    Extract<
                                                                                                                    TDefs[K],
                                                                                                                    {
                                                                                                                    readonly kind: 'range'
                                                                                                                    }
                                                                                                                    >,
                                                                                                                    ] extends [never]
                                                                                                                    ? never
                                                                                                                    : K
                                                                                                                    }[FilterId<TDefs>],
                                                                                                                    ) => Partial<FilterSetRange>
                                                                                                                    Description
                                                                                                                    Returns the bounds of a range filter from its definition, then getFilterRange.
                                                                                                                        Type
                                                                                                                        (
                                                                                                                        id: FilterId<TDefs>,
                                                                                                                        ) => number
                                                                                                                        Description
                                                                                                                        Returns how many values a filter has in value. Each array item counts once. Ranges, dates, and text count 1.
                                                                                                                            Type
                                                                                                                            (
                                                                                                                            id?: FilterId<TDefs>,
                                                                                                                            ) => Array<{
                                                                                                                            filterId: FilterId<TDefs>
                                                                                                                            label: string
                                                                                                                            value: string
                                                                                                                            }>
                                                                                                                            Description
                                                                                                                            Returns one item per selected value in value, for active filter chips. Pass an id to return the items of one filter. Without an id, returns the items of every filter. List and tree filters return one item per option, labeled by the filter's collection, or by the value itself when the collection doesn't contain it. Range, date, and text filters return one item for the whole value.
                                                                                                                                Type
                                                                                                                                (
                                                                                                                                id: FilterId<TDefs>,
                                                                                                                                ) => boolean
                                                                                                                                Description
                                                                                                                                Whether a filter has a non-empty value in draftValue.
                                                                                                                                    Type
                                                                                                                                    boolean
                                                                                                                                    Description
                                                                                                                                    Whether draftValue differs from value. Always false in auto mode.
                                                                                                                                    Type
                                                                                                                                    (
                                                                                                                                    id: FilterId<TDefs>,
                                                                                                                                    value: string,
                                                                                                                                    ) => void
                                                                                                                                    Description
                                                                                                                                    Removes one of a filter's values from value, given the value of an item from getValueItems. Range, date, and text filters are cleared. Follows the same rules as setFilterValue.
                                                                                                                                        Type
                                                                                                                                        () => void
                                                                                                                                        Description
                                                                                                                                        Discards the draft and restores the committed filters. No-op in auto mode.
                                                                                                                                          Type
                                                                                                                                          (
                                                                                                                                          id: K,
                                                                                                                                          value:
                                                                                                                                          | FilterValues<TDefs>[K]
                                                                                                                                          | ((
                                                                                                                                          prev: FilterValues<TDefs>[K],
                                                                                                                                          ) => FilterValues<TDefs>[K]),
                                                                                                                                          ) => void
                                                                                                                                          Description
                                                                                                                                          Sets a filter's value in draftValue. Empty values remove the filter. In manual mode, the change is committed by apply.
                                                                                                                                              Type
                                                                                                                                              (
                                                                                                                                              id: K,
                                                                                                                                              value:
                                                                                                                                              | FilterValues<TDefs>[K]
                                                                                                                                              | ((
                                                                                                                                              prev: FilterValues<TDefs>[K],
                                                                                                                                              ) => FilterValues<TDefs>[K]),
                                                                                                                                              ) => void
                                                                                                                                              Description
                                                                                                                                              Sets a filter's value in value. Empty values remove the filter. In manual mode, the same change is made to the draft, which keeps its other changes.
                                                                                                                                                  Type
                                                                                                                                                  FilterValues<TDefs>
                                                                                                                                                  Description
                                                                                                                                                  The committed selection.
                                                                                                                                                  Type
                                                                                                                                                  number
                                                                                                                                                  Description
                                                                                                                                                  The total number of selected values in value. Each array item counts once; ranges, dates, and text count 1. Equal to draftValueCount in auto mode.

                                                                                                                                                  useFilter

                                                                                                                                                  Returns the state of the enclosing FilterPanel.Filter or FilterProvider.

                                                                                                                                                  FilterContextValue<
                                                                                                                                                  TDef extends FilterDefinition = FilterDefinition,
                                                                                                                                                  >
                                                                                                                                                  PropType
                                                                                                                                                  Removes the filter's value. In manual mode, the change is committed by the filter set's apply.
                                                                                                                                                    () => void
                                                                                                                                                    The collection of a list or tree filter. undefined for other filter kinds, and for collection filters with no collection.
                                                                                                                                                    | FilterCollection<TDef>
                                                                                                                                                    | undefined
                                                                                                                                                    How many values the filter contributes to the filter set's draftValueCount.
                                                                                                                                                    number
                                                                                                                                                    The filter's definition.
                                                                                                                                                    IdentifiedFilterDefinition<TDef>
                                                                                                                                                    The filter id.
                                                                                                                                                    TDef extends {
                                                                                                                                                    readonly id: infer TId extends
                                                                                                                                                    string
                                                                                                                                                    }
                                                                                                                                                    ? TId
                                                                                                                                                    : string
                                                                                                                                                    Whether the filter has a non-empty value.
                                                                                                                                                    boolean
                                                                                                                                                    The resolved string label. Used for accessible names and summaries.
                                                                                                                                                    string
                                                                                                                                                    The id of the element that labels the filter, such as the filter panel's filter label. Controls reference it with aria-labelledby. When unset, controls use label as their aria-label.
                                                                                                                                                    | string
                                                                                                                                                    | undefined
                                                                                                                                                    The result count of each option, keyed by option value, from the filter set's getFilterOptionCounts. Options missing from the counts count 0. undefined when the filter has no counts.
                                                                                                                                                    | Record<string, number>
                                                                                                                                                    | undefined
                                                                                                                                                    Sets the filter's value. In manual mode, the change is committed by the filter set's apply.
                                                                                                                                                        (
                                                                                                                                                        value:
                                                                                                                                                        | FilterDefinitionValue<TDef>
                                                                                                                                                        | ((
                                                                                                                                                        prev:
                                                                                                                                                        | FilterDefinitionValue<TDef>
                                                                                                                                                        | undefined,
                                                                                                                                                        ) =>
                                                                                                                                                        | FilterDefinitionValue<TDef>
                                                                                                                                                        | undefined)
                                                                                                                                                        | undefined,
                                                                                                                                                        ) => void
                                                                                                                                                        The filter's displayed value. In manual mode, this is the draft value.
                                                                                                                                                        | FilterDefinitionValue<TDef>
                                                                                                                                                        | undefined
                                                                                                                                                        Type
                                                                                                                                                        () => void
                                                                                                                                                        Description
                                                                                                                                                        Removes the filter's value. In manual mode, the change is committed by the filter set's apply.
                                                                                                                                                          Type
                                                                                                                                                          | FilterCollection<TDef>
                                                                                                                                                          | undefined
                                                                                                                                                          Description
                                                                                                                                                          The collection of a list or tree filter. undefined for other filter kinds, and for collection filters with no collection.
                                                                                                                                                          Type
                                                                                                                                                          number
                                                                                                                                                          Description
                                                                                                                                                          How many values the filter contributes to the filter set's draftValueCount.
                                                                                                                                                          Type
                                                                                                                                                          IdentifiedFilterDefinition<TDef>
                                                                                                                                                          Description
                                                                                                                                                          The filter's definition.
                                                                                                                                                          Type
                                                                                                                                                          TDef extends {
                                                                                                                                                          readonly id: infer TId extends
                                                                                                                                                          string
                                                                                                                                                          }
                                                                                                                                                          ? TId
                                                                                                                                                          : string
                                                                                                                                                          Description
                                                                                                                                                          The filter id.
                                                                                                                                                          Type
                                                                                                                                                          boolean
                                                                                                                                                          Description
                                                                                                                                                          Whether the filter has a non-empty value.
                                                                                                                                                          Type
                                                                                                                                                          string
                                                                                                                                                          Description
                                                                                                                                                          The resolved string label. Used for accessible names and summaries.
                                                                                                                                                          Type
                                                                                                                                                          | string
                                                                                                                                                          | undefined
                                                                                                                                                          Description
                                                                                                                                                          The id of the element that labels the filter, such as the filter panel's filter label. Controls reference it with aria-labelledby. When unset, controls use label as their aria-label.
                                                                                                                                                          Type
                                                                                                                                                          | Record<string, number>
                                                                                                                                                          | undefined
                                                                                                                                                          Description
                                                                                                                                                          The result count of each option, keyed by option value, from the filter set's getFilterOptionCounts. Options missing from the counts count 0. undefined when the filter has no counts.
                                                                                                                                                          Type
                                                                                                                                                          (
                                                                                                                                                          value:
                                                                                                                                                          | FilterDefinitionValue<TDef>
                                                                                                                                                          | ((
                                                                                                                                                          prev:
                                                                                                                                                          | FilterDefinitionValue<TDef>
                                                                                                                                                          | undefined,
                                                                                                                                                          ) =>
                                                                                                                                                          | FilterDefinitionValue<TDef>
                                                                                                                                                          | undefined)
                                                                                                                                                          | undefined,
                                                                                                                                                          ) => void
                                                                                                                                                          Description
                                                                                                                                                          Sets the filter's value. In manual mode, the change is committed by the filter set's apply.
                                                                                                                                                              Type
                                                                                                                                                              | FilterDefinitionValue<TDef>
                                                                                                                                                              | undefined
                                                                                                                                                              Description
                                                                                                                                                              The filter's displayed value. In manual mode, this is the draft value.

                                                                                                                                                              Definitions

                                                                                                                                                              FilterDefinition

                                                                                                                                                              | CustomFilterDefinition<any>
                                                                                                                                                              | DateFilterDefinition
                                                                                                                                                              | ListFilterDefinition
                                                                                                                                                              | RangeFilterDefinition
                                                                                                                                                              | TextFilterDefinition
                                                                                                                                                              | TreeFilterDefinition

                                                                                                                                                              ListFilterConfig

                                                                                                                                                              ListFilterConfig<T = any>
                                                                                                                                                              PropType
                                                                                                                                                              The items to choose from. Their values are written to the filter, and their labels label the selection everywhere, including active filter chips. Omit to resolve the collection from the filter set's getFilterCollection, for data that loads asynchronously or depends on other state.
                                                                                                                                                              ListCollection<T>
                                                                                                                                                              Human-readable label for the filter. Used by the filter section, active filter summaries, and the control's accessible name.
                                                                                                                                                              string
                                                                                                                                                              Type
                                                                                                                                                              ListCollection<T>
                                                                                                                                                              Description
                                                                                                                                                              The items to choose from. Their values are written to the filter, and their labels label the selection everywhere, including active filter chips. Omit to resolve the collection from the filter set's getFilterCollection, for data that loads asynchronously or depends on other state.
                                                                                                                                                              Type
                                                                                                                                                              string
                                                                                                                                                              Description
                                                                                                                                                              Human-readable label for the filter. Used by the filter section, active filter summaries, and the control's accessible name.

                                                                                                                                                              TreeFilterConfig

                                                                                                                                                              TreeFilterConfig<T = any>
                                                                                                                                                              PropType
                                                                                                                                                              The tree to choose from. Checked leaf values are written to the filter, and node labels label the selection everywhere, including active filter chips. Omit to resolve the collection from the filter set's getFilterCollection.
                                                                                                                                                              TreeCollection<T>
                                                                                                                                                              Human-readable label for the filter. Used by the filter section, active filter summaries, and the control's accessible name.
                                                                                                                                                              string
                                                                                                                                                              Type
                                                                                                                                                              TreeCollection<T>
                                                                                                                                                              Description
                                                                                                                                                              The tree to choose from. Checked leaf values are written to the filter, and node labels label the selection everywhere, including active filter chips. Omit to resolve the collection from the filter set's getFilterCollection.
                                                                                                                                                              Type
                                                                                                                                                              string
                                                                                                                                                              Description
                                                                                                                                                              Human-readable label for the filter. Used by the filter section, active filter summaries, and the control's accessible name.

                                                                                                                                                              RangeFilterConfig

                                                                                                                                                              PropTypeDefault
                                                                                                                                                              Formats a bound for display in active filter summaries.
                                                                                                                                                              (
                                                                                                                                                              value: number,
                                                                                                                                                              ) => string
                                                                                                                                                              String
                                                                                                                                                              
                                                                                                                                                              Human-readable label for the filter. Used by the filter section, active filter summaries, and the control's accessible name.
                                                                                                                                                              string
                                                                                                                                                              The upper bound of the range control.
                                                                                                                                                              number
                                                                                                                                                              The lower bound of the range control.
                                                                                                                                                              number
                                                                                                                                                              Type
                                                                                                                                                              (
                                                                                                                                                              value: number,
                                                                                                                                                              ) => string
                                                                                                                                                              Description
                                                                                                                                                              Formats a bound for display in active filter summaries.
                                                                                                                                                              Type
                                                                                                                                                              string
                                                                                                                                                              Description
                                                                                                                                                              Human-readable label for the filter. Used by the filter section, active filter summaries, and the control's accessible name.
                                                                                                                                                              Type
                                                                                                                                                              number
                                                                                                                                                              Description
                                                                                                                                                              The upper bound of the range control.
                                                                                                                                                              Type
                                                                                                                                                              number
                                                                                                                                                              Description
                                                                                                                                                              The lower bound of the range control.

                                                                                                                                                              DateFilterConfig

                                                                                                                                                              PropTypeDefault
                                                                                                                                                              Formats an ISO 8601 date for display in active filter summaries.
                                                                                                                                                              (
                                                                                                                                                              value: string,
                                                                                                                                                              ) => string
                                                                                                                                                              the ISO string
                                                                                                                                                              
                                                                                                                                                              Human-readable label for the filter. Used by the filter section, active filter summaries, and the control's accessible name.
                                                                                                                                                              string
                                                                                                                                                              Developer-defined presets, such as "Last 7 days". A preset whose value is a date picker range preset, such as "last7Days", needs no range. The selection stores the preset's value. Resolve it to dates with resolveDateFilterPreset.
                                                                                                                                                              Array<
                                                                                                                                                              | BuiltInDateFilterPreset
                                                                                                                                                              | {
                                                                                                                                                              label: string
                                                                                                                                                              range: () => [
                                                                                                                                                              string | Date | null,
                                                                                                                                                              string | Date | null,
                                                                                                                                                              ]
                                                                                                                                                              value: string
                                                                                                                                                              }
                                                                                                                                                              >
                                                                                                                                                              Type
                                                                                                                                                              (
                                                                                                                                                              value: string,
                                                                                                                                                              ) => string
                                                                                                                                                              Description
                                                                                                                                                              Formats an ISO 8601 date for display in active filter summaries.
                                                                                                                                                              Type
                                                                                                                                                              string
                                                                                                                                                              Description
                                                                                                                                                              Human-readable label for the filter. Used by the filter section, active filter summaries, and the control's accessible name.
                                                                                                                                                              Type
                                                                                                                                                              Array<
                                                                                                                                                              | BuiltInDateFilterPreset
                                                                                                                                                              | {
                                                                                                                                                              label: string
                                                                                                                                                              range: () => [
                                                                                                                                                              string | Date | null,
                                                                                                                                                              string | Date | null,
                                                                                                                                                              ]
                                                                                                                                                              value: string
                                                                                                                                                              }
                                                                                                                                                              >
                                                                                                                                                              Description
                                                                                                                                                              Developer-defined presets, such as "Last 7 days". A preset whose value is a date picker range preset, such as "last7Days", needs no range. The selection stores the preset's value. Resolve it to dates with resolveDateFilterPreset.

                                                                                                                                                              CustomFilterConfig

                                                                                                                                                              CustomFilterConfig<TValue>
                                                                                                                                                              PropType
                                                                                                                                                              Returns how many values the filter contributes to the active filter count.

                                                                                                                                                              Defaults to 1 for any non-empty value, or the array length for arrays.
                                                                                                                                                                (
                                                                                                                                                                value: TValue,
                                                                                                                                                                ) => number
                                                                                                                                                                Returns one item per selected value, for active filter chips. For array values, use each element's string form as the item's value so removeFilterValue can remove it.

                                                                                                                                                                Defaults to one item per array element, otherwise one item for the value.
                                                                                                                                                                  (
                                                                                                                                                                  value: TValue,
                                                                                                                                                                  ) => Array<{
                                                                                                                                                                  label: string
                                                                                                                                                                  value: string
                                                                                                                                                                  }>
                                                                                                                                                                  Returns true when the value should be treated as empty and removed. Applied after the built-in check for undefined, null, "", and [].
                                                                                                                                                                    (
                                                                                                                                                                    value: TValue,
                                                                                                                                                                    ) => boolean
                                                                                                                                                                    Human-readable label for the filter. Used by the filter section, active filter summaries, and the control's accessible name.
                                                                                                                                                                    string
                                                                                                                                                                    Type
                                                                                                                                                                    (
                                                                                                                                                                    value: TValue,
                                                                                                                                                                    ) => number
                                                                                                                                                                    Description
                                                                                                                                                                    Returns how many values the filter contributes to the active filter count.

                                                                                                                                                                    Defaults to 1 for any non-empty value, or the array length for arrays.
                                                                                                                                                                      Type
                                                                                                                                                                      (
                                                                                                                                                                      value: TValue,
                                                                                                                                                                      ) => Array<{
                                                                                                                                                                      label: string
                                                                                                                                                                      value: string
                                                                                                                                                                      }>
                                                                                                                                                                      Description
                                                                                                                                                                      Returns one item per selected value, for active filter chips. For array values, use each element's string form as the item's value so removeFilterValue can remove it.

                                                                                                                                                                      Defaults to one item per array element, otherwise one item for the value.
                                                                                                                                                                        Type
                                                                                                                                                                        (
                                                                                                                                                                        value: TValue,
                                                                                                                                                                        ) => boolean
                                                                                                                                                                        Description
                                                                                                                                                                        Returns true when the value should be treated as empty and removed. Applied after the built-in check for undefined, null, "", and [].
                                                                                                                                                                          Type
                                                                                                                                                                          string
                                                                                                                                                                          Description
                                                                                                                                                                          Human-readable label for the filter. Used by the filter section, active filter summaries, and the control's accessible name.

                                                                                                                                                                          Element API

                                                                                                                                                                          <FilterPanel.RootProvider>

                                                                                                                                                                          The root element of a filter panel whose filter set was created with useFilterSet. Renders a <div> element by default.
                                                                                                                                                                          PropTypeDefault
                                                                                                                                                                          A filter set API created with useFilterSet.
                                                                                                                                                                          FilterSetApi<any>
                                                                                                                                                                          React children prop.
                                                                                                                                                                          Allows you to replace the component's HTML element with a different tag or component. Learn more
                                                                                                                                                                          | ReactElement
                                                                                                                                                                          | ((
                                                                                                                                                                          props: object,
                                                                                                                                                                          ) => ReactElement)
                                                                                                                                                                          The size of the filter panel and its controls.
                                                                                                                                                                          | 'sm'
                                                                                                                                                                          | 'md'
                                                                                                                                                                          | 'lg'
                                                                                                                                                                          "md"
                                                                                                                                                                          
                                                                                                                                                                          Type
                                                                                                                                                                          FilterSetApi<any>
                                                                                                                                                                          Description
                                                                                                                                                                          A filter set API created with useFilterSet.
                                                                                                                                                                          Description
                                                                                                                                                                          React children prop.
                                                                                                                                                                          Type
                                                                                                                                                                          | ReactElement
                                                                                                                                                                          | ((
                                                                                                                                                                          props: object,
                                                                                                                                                                          ) => ReactElement)
                                                                                                                                                                          Description
                                                                                                                                                                          Allows you to replace the component's HTML element with a different tag or component. Learn more
                                                                                                                                                                          Type
                                                                                                                                                                          | 'sm'
                                                                                                                                                                          | 'md'
                                                                                                                                                                          | 'lg'
                                                                                                                                                                          Description
                                                                                                                                                                          The size of the filter panel and its controls.

                                                                                                                                                                          <FilterPanel.Header>

                                                                                                                                                                          The header of the filter panel. Renders a <div> element by default.
                                                                                                                                                                          PropType
                                                                                                                                                                          Allows you to replace the component's HTML element with a different tag or component. Learn more
                                                                                                                                                                          | ReactElement
                                                                                                                                                                          | ((
                                                                                                                                                                          props: object,
                                                                                                                                                                          ) => ReactElement)
                                                                                                                                                                          Type
                                                                                                                                                                          | ReactElement
                                                                                                                                                                          | ((
                                                                                                                                                                          props: object,
                                                                                                                                                                          ) => ReactElement)
                                                                                                                                                                          Description
                                                                                                                                                                          Allows you to replace the component's HTML element with a different tag or component. Learn more

                                                                                                                                                                          <FilterPanel.Heading>

                                                                                                                                                                          The title of the filter panel. Renders a div element by default.
                                                                                                                                                                          PropTypeDefault
                                                                                                                                                                          Icon rendered before the heading text. Pass null to hide it.
                                                                                                                                                                          | LucideIcon
                                                                                                                                                                          | ReactNode
                                                                                                                                                                          Funnel
                                                                                                                                                                          
                                                                                                                                                                          Allows you to replace the component's HTML element with a different tag or component. Learn more
                                                                                                                                                                          | ReactElement
                                                                                                                                                                          | ((
                                                                                                                                                                          props: object,
                                                                                                                                                                          ) => ReactElement)
                                                                                                                                                                          Type
                                                                                                                                                                          | LucideIcon
                                                                                                                                                                          | ReactNode
                                                                                                                                                                          Description
                                                                                                                                                                          Icon rendered before the heading text. Pass null to hide it.
                                                                                                                                                                          Type
                                                                                                                                                                          | ReactElement
                                                                                                                                                                          | ((
                                                                                                                                                                          props: object,
                                                                                                                                                                          ) => ReactElement)
                                                                                                                                                                          Description
                                                                                                                                                                          Allows you to replace the component's HTML element with a different tag or component. Learn more

                                                                                                                                                                          <FilterPanel.Count>

                                                                                                                                                                          The total number of selected values in the panel. Hidden when no filters are set. Renders a <span> element by default.
                                                                                                                                                                          PropTypeDefault
                                                                                                                                                                          React children prop. When provided, overrides type-specific content.
                                                                                                                                                                          The badge disabled state.
                                                                                                                                                                          boolean
                                                                                                                                                                          Governs the color and style of the number badge.
                                                                                                                                                                          | 'neutral'
                                                                                                                                                                          | 'neutral-outline'
                                                                                                                                                                          | 'brand'
                                                                                                                                                                          | 'brand-outline'
                                                                                                                                                                          | 'info'
                                                                                                                                                                          | 'success'
                                                                                                                                                                          | 'warning'
                                                                                                                                                                          | 'danger'
                                                                                                                                                                          | 'persistent-black'
                                                                                                                                                                          | 'persistent-white'
                                                                                                                                                                          'neutral'
                                                                                                                                                                          
                                                                                                                                                                          Maximum value to display.
                                                                                                                                                                          number
                                                                                                                                                                          99
                                                                                                                                                                          
                                                                                                                                                                          Allows you to replace the component's HTML element with a different tag or component. Learn more
                                                                                                                                                                          | ReactElement
                                                                                                                                                                          | ((
                                                                                                                                                                          props: object,
                                                                                                                                                                          ) => ReactElement)
                                                                                                                                                                          Governs the size of the badge.
                                                                                                                                                                          | 'xs'
                                                                                                                                                                          | 'sm'
                                                                                                                                                                          | 'md'
                                                                                                                                                                          | 'lg'
                                                                                                                                                                          'md'
                                                                                                                                                                          
                                                                                                                                                                          The numeric value to display.
                                                                                                                                                                          number
                                                                                                                                                                          Description
                                                                                                                                                                          React children prop. When provided, overrides type-specific content.
                                                                                                                                                                          Type
                                                                                                                                                                          boolean
                                                                                                                                                                          Description
                                                                                                                                                                          The badge disabled state.
                                                                                                                                                                          Type
                                                                                                                                                                          | 'neutral'
                                                                                                                                                                          | 'neutral-outline'
                                                                                                                                                                          | 'brand'
                                                                                                                                                                          | 'brand-outline'
                                                                                                                                                                          | 'info'
                                                                                                                                                                          | 'success'
                                                                                                                                                                          | 'warning'
                                                                                                                                                                          | 'danger'
                                                                                                                                                                          | 'persistent-black'
                                                                                                                                                                          | 'persistent-white'
                                                                                                                                                                          Description
                                                                                                                                                                          Governs the color and style of the number badge.
                                                                                                                                                                          Type
                                                                                                                                                                          number
                                                                                                                                                                          Description
                                                                                                                                                                          Maximum value to display.
                                                                                                                                                                          Type
                                                                                                                                                                          | ReactElement
                                                                                                                                                                          | ((
                                                                                                                                                                          props: object,
                                                                                                                                                                          ) => ReactElement)
                                                                                                                                                                          Description
                                                                                                                                                                          Allows you to replace the component's HTML element with a different tag or component. Learn more
                                                                                                                                                                          Type
                                                                                                                                                                          | 'xs'
                                                                                                                                                                          | 'sm'
                                                                                                                                                                          | 'md'
                                                                                                                                                                          | 'lg'
                                                                                                                                                                          Description
                                                                                                                                                                          Governs the size of the badge.
                                                                                                                                                                          Type
                                                                                                                                                                          number
                                                                                                                                                                          Description
                                                                                                                                                                          The numeric value to display.

                                                                                                                                                                          <FilterPanel.Section>

                                                                                                                                                                          A group of related filters within the filter panel. Renders a <div> element by default.
                                                                                                                                                                          PropType
                                                                                                                                                                          Allows you to replace the component's HTML element with a different tag or component. Learn more
                                                                                                                                                                          | ReactElement
                                                                                                                                                                          | ((
                                                                                                                                                                          props: object,
                                                                                                                                                                          ) => ReactElement)
                                                                                                                                                                          Type
                                                                                                                                                                          | ReactElement
                                                                                                                                                                          | ((
                                                                                                                                                                          props: object,
                                                                                                                                                                          ) => ReactElement)
                                                                                                                                                                          Description
                                                                                                                                                                          Allows you to replace the component's HTML element with a different tag or component. Learn more
                                                                                                                                                                          The footer of the filter panel. Renders a <div> element by default.
                                                                                                                                                                          PropType
                                                                                                                                                                          Allows you to replace the component's HTML element with a different tag or component. Learn more
                                                                                                                                                                          | ReactElement
                                                                                                                                                                          | ((
                                                                                                                                                                          props: object,
                                                                                                                                                                          ) => ReactElement)
                                                                                                                                                                          Type
                                                                                                                                                                          | ReactElement
                                                                                                                                                                          | ((
                                                                                                                                                                          props: object,
                                                                                                                                                                          ) => ReactElement)
                                                                                                                                                                          Description
                                                                                                                                                                          Allows you to replace the component's HTML element with a different tag or component. Learn more

                                                                                                                                                                          <FilterPanel.ApplyButton>

                                                                                                                                                                          Commits the draft filters when clicked. Disabled when the draft matches the committed filters, which is always the case in auto apply mode. Renders a <button> element by default.
                                                                                                                                                                          PropTypeDefault
                                                                                                                                                                          v1.32.0
                                                                                                                                                                          A NumberBadge or StatusBadge, positioned after the text content. Its emphasis, size, and disabled state default to values that match the button. Props set on the badge take precedence.
                                                                                                                                                                          The density of the button. Governs padding and height.
                                                                                                                                                                          | 'default'
                                                                                                                                                                          | 'compact'
                                                                                                                                                                          'default'
                                                                                                                                                                          
                                                                                                                                                                          Controls whether the component is interactive. When true, pointer/focus events are blocked, and the component is visually dimmed.
                                                                                                                                                                          boolean
                                                                                                                                                                          false
                                                                                                                                                                          
                                                                                                                                                                          The style variant of the button. Governs colors.
                                                                                                                                                                          | 'neutral'
                                                                                                                                                                          | 'primary'
                                                                                                                                                                          | 'danger'
                                                                                                                                                                          | 'persistent-white'
                                                                                                                                                                          | 'persistent-black'
                                                                                                                                                                          | 'inverse'
                                                                                                                                                                          | 'white-persistent'
                                                                                                                                                                          | 'black-persistent'
                                                                                                                                                                          'neutral'
                                                                                                                                                                          
                                                                                                                                                                          Icon positioned after the text content. If supplied as a LucideIcon, the size will automatically match the size prop. Supply as a ReactElement for additional customization.
                                                                                                                                                                          | LucideIcon
                                                                                                                                                                          | ReactElement
                                                                                                                                                                          | null
                                                                                                                                                                          Allows you to replace the component's HTML element with a different tag or component. Learn more
                                                                                                                                                                          | ReactElement
                                                                                                                                                                          | ((
                                                                                                                                                                          props: object,
                                                                                                                                                                          ) => ReactElement)
                                                                                                                                                                          The size of the component and its icons.
                                                                                                                                                                          | 'sm'
                                                                                                                                                                          | 'md'
                                                                                                                                                                          | 'lg'
                                                                                                                                                                          'md'
                                                                                                                                                                          
                                                                                                                                                                          Icon positioned before the text content. If supplied as a LucideIcon, the size will automatically match the size prop. Supply as a ReactElement for additional customization.
                                                                                                                                                                          | LucideIcon
                                                                                                                                                                          | ReactElement
                                                                                                                                                                          | null
                                                                                                                                                                          The style variant of the button. Governs colors.
                                                                                                                                                                          | 'fill'
                                                                                                                                                                          | 'ghost'
                                                                                                                                                                          | 'outline'
                                                                                                                                                                          'fill'
                                                                                                                                                                          
                                                                                                                                                                          v1.32.0
                                                                                                                                                                          Description
                                                                                                                                                                          A NumberBadge or StatusBadge, positioned after the text content. Its emphasis, size, and disabled state default to values that match the button. Props set on the badge take precedence.
                                                                                                                                                                          Type
                                                                                                                                                                          | 'default'
                                                                                                                                                                          | 'compact'
                                                                                                                                                                          Description
                                                                                                                                                                          The density of the button. Governs padding and height.
                                                                                                                                                                          Type
                                                                                                                                                                          boolean
                                                                                                                                                                          Description
                                                                                                                                                                          Controls whether the component is interactive. When true, pointer/focus events are blocked, and the component is visually dimmed.
                                                                                                                                                                          Type
                                                                                                                                                                          | 'neutral'
                                                                                                                                                                          | 'primary'
                                                                                                                                                                          | 'danger'
                                                                                                                                                                          | 'persistent-white'
                                                                                                                                                                          | 'persistent-black'
                                                                                                                                                                          | 'inverse'
                                                                                                                                                                          | 'white-persistent'
                                                                                                                                                                          | 'black-persistent'
                                                                                                                                                                          Description
                                                                                                                                                                          The style variant of the button. Governs colors.
                                                                                                                                                                          Type
                                                                                                                                                                          | LucideIcon
                                                                                                                                                                          | ReactElement
                                                                                                                                                                          | null
                                                                                                                                                                          Description
                                                                                                                                                                          Icon positioned after the text content. If supplied as a LucideIcon, the size will automatically match the size prop. Supply as a ReactElement for additional customization.
                                                                                                                                                                          Type
                                                                                                                                                                          | ReactElement
                                                                                                                                                                          | ((
                                                                                                                                                                          props: object,
                                                                                                                                                                          ) => ReactElement)
                                                                                                                                                                          Description
                                                                                                                                                                          Allows you to replace the component's HTML element with a different tag or component. Learn more
                                                                                                                                                                          Type
                                                                                                                                                                          | 'sm'
                                                                                                                                                                          | 'md'
                                                                                                                                                                          | 'lg'
                                                                                                                                                                          Description
                                                                                                                                                                          The size of the component and its icons.
                                                                                                                                                                          Type
                                                                                                                                                                          | LucideIcon
                                                                                                                                                                          | ReactElement
                                                                                                                                                                          | null
                                                                                                                                                                          Description
                                                                                                                                                                          Icon positioned before the text content. If supplied as a LucideIcon, the size will automatically match the size prop. Supply as a ReactElement for additional customization.
                                                                                                                                                                          Type
                                                                                                                                                                          | 'fill'
                                                                                                                                                                          | 'ghost'
                                                                                                                                                                          | 'outline'
                                                                                                                                                                          Description
                                                                                                                                                                          The style variant of the button. Governs colors.

                                                                                                                                                                          <FilterPanel.ClearButton>

                                                                                                                                                                          Removes every filter when clicked. In manual apply mode, the cleared filters must still be applied. Disabled when no filters are set. Renders a <button> element by default.
                                                                                                                                                                          PropTypeDefault
                                                                                                                                                                          v1.32.0
                                                                                                                                                                          A NumberBadge or StatusBadge, positioned after the text content. Its emphasis, size, and disabled state default to values that match the button. Props set on the badge take precedence.
                                                                                                                                                                          The density of the button. Governs padding and height.
                                                                                                                                                                          | 'default'
                                                                                                                                                                          | 'compact'
                                                                                                                                                                          'default'
                                                                                                                                                                          
                                                                                                                                                                          Controls whether the component is interactive. When true, pointer/focus events are blocked, and the component is visually dimmed.
                                                                                                                                                                          boolean
                                                                                                                                                                          false
                                                                                                                                                                          
                                                                                                                                                                          The style variant of the button. Governs colors.
                                                                                                                                                                          | 'neutral'
                                                                                                                                                                          | 'primary'
                                                                                                                                                                          | 'danger'
                                                                                                                                                                          | 'persistent-white'
                                                                                                                                                                          | 'persistent-black'
                                                                                                                                                                          | 'inverse'
                                                                                                                                                                          | 'white-persistent'
                                                                                                                                                                          | 'black-persistent'
                                                                                                                                                                          'neutral'
                                                                                                                                                                          
                                                                                                                                                                          Icon positioned after the text content. If supplied as a LucideIcon, the size will automatically match the size prop. Supply as a ReactElement for additional customization.
                                                                                                                                                                          | LucideIcon
                                                                                                                                                                          | ReactElement
                                                                                                                                                                          | null
                                                                                                                                                                          Allows you to replace the component's HTML element with a different tag or component. Learn more
                                                                                                                                                                          | ReactElement
                                                                                                                                                                          | ((
                                                                                                                                                                          props: object,
                                                                                                                                                                          ) => ReactElement)
                                                                                                                                                                          The size of the component and its icons.
                                                                                                                                                                          | 'sm'
                                                                                                                                                                          | 'md'
                                                                                                                                                                          | 'lg'
                                                                                                                                                                          'md'
                                                                                                                                                                          
                                                                                                                                                                          Icon positioned before the text content. If supplied as a LucideIcon, the size will automatically match the size prop. Supply as a ReactElement for additional customization.
                                                                                                                                                                          | LucideIcon
                                                                                                                                                                          | ReactElement
                                                                                                                                                                          | null
                                                                                                                                                                          The style variant of the button. Governs colors.
                                                                                                                                                                          | 'fill'
                                                                                                                                                                          | 'ghost'
                                                                                                                                                                          | 'outline'
                                                                                                                                                                          'fill'
                                                                                                                                                                          
                                                                                                                                                                          v1.32.0
                                                                                                                                                                          Description
                                                                                                                                                                          A NumberBadge or StatusBadge, positioned after the text content. Its emphasis, size, and disabled state default to values that match the button. Props set on the badge take precedence.
                                                                                                                                                                          Type
                                                                                                                                                                          | 'default'
                                                                                                                                                                          | 'compact'
                                                                                                                                                                          Description
                                                                                                                                                                          The density of the button. Governs padding and height.
                                                                                                                                                                          Type
                                                                                                                                                                          boolean
                                                                                                                                                                          Description
                                                                                                                                                                          Controls whether the component is interactive. When true, pointer/focus events are blocked, and the component is visually dimmed.
                                                                                                                                                                          Type
                                                                                                                                                                          | 'neutral'
                                                                                                                                                                          | 'primary'
                                                                                                                                                                          | 'danger'
                                                                                                                                                                          | 'persistent-white'
                                                                                                                                                                          | 'persistent-black'
                                                                                                                                                                          | 'inverse'
                                                                                                                                                                          | 'white-persistent'
                                                                                                                                                                          | 'black-persistent'
                                                                                                                                                                          Description
                                                                                                                                                                          The style variant of the button. Governs colors.
                                                                                                                                                                          Type
                                                                                                                                                                          | LucideIcon
                                                                                                                                                                          | ReactElement
                                                                                                                                                                          | null
                                                                                                                                                                          Description
                                                                                                                                                                          Icon positioned after the text content. If supplied as a LucideIcon, the size will automatically match the size prop. Supply as a ReactElement for additional customization.
                                                                                                                                                                          Type
                                                                                                                                                                          | ReactElement
                                                                                                                                                                          | ((
                                                                                                                                                                          props: object,
                                                                                                                                                                          ) => ReactElement)
                                                                                                                                                                          Description
                                                                                                                                                                          Allows you to replace the component's HTML element with a different tag or component. Learn more
                                                                                                                                                                          Type
                                                                                                                                                                          | 'sm'
                                                                                                                                                                          | 'md'
                                                                                                                                                                          | 'lg'
                                                                                                                                                                          Description
                                                                                                                                                                          The size of the component and its icons.
                                                                                                                                                                          Type
                                                                                                                                                                          | LucideIcon
                                                                                                                                                                          | ReactElement
                                                                                                                                                                          | null
                                                                                                                                                                          Description
                                                                                                                                                                          Icon positioned before the text content. If supplied as a LucideIcon, the size will automatically match the size prop. Supply as a ReactElement for additional customization.
                                                                                                                                                                          Type
                                                                                                                                                                          | 'fill'
                                                                                                                                                                          | 'ghost'
                                                                                                                                                                          | 'outline'
                                                                                                                                                                          Description
                                                                                                                                                                          The style variant of the button. Governs colors.

                                                                                                                                                                          <FilterPanel.CloseButton>

                                                                                                                                                                          Closes the filter panel. The panel does not manage its own visibility, so handle onClick or render this inside a container that provides closing behavior, such as a drawer. Renders a <button> element by default.
                                                                                                                                                                          PropTypeDefault
                                                                                                                                                                          The density of the button. Governs padding and height.
                                                                                                                                                                          | 'default'
                                                                                                                                                                          | 'compact'
                                                                                                                                                                          'default'
                                                                                                                                                                          
                                                                                                                                                                          Controls whether the component is interactive. When true, pointer/focus events are blocked, and the component is visually dimmed.
                                                                                                                                                                          boolean
                                                                                                                                                                          false
                                                                                                                                                                          
                                                                                                                                                                          The style variant of the button. Governs colors.
                                                                                                                                                                          | 'neutral'
                                                                                                                                                                          | 'primary'
                                                                                                                                                                          | 'danger'
                                                                                                                                                                          | 'persistent-white'
                                                                                                                                                                          | 'persistent-black'
                                                                                                                                                                          | 'inverse'
                                                                                                                                                                          | 'white-persistent'
                                                                                                                                                                          | 'black-persistent'
                                                                                                                                                                          'neutral'
                                                                                                                                                                          
                                                                                                                                                                          lucide-react icon. Can be supplied as a ReactElement for additional customization.
                                                                                                                                                                          | LucideIcon
                                                                                                                                                                          | ReactElement
                                                                                                                                                                          X
                                                                                                                                                                          
                                                                                                                                                                          Allows you to replace the component's HTML element with a different tag or component. Learn more
                                                                                                                                                                          | ReactElement
                                                                                                                                                                          | ((
                                                                                                                                                                          props: object,
                                                                                                                                                                          ) => ReactElement)
                                                                                                                                                                          Governs the shape of the icon button.
                                                                                                                                                                          | 'square'
                                                                                                                                                                          | 'rounded'
                                                                                                                                                                          'square'
                                                                                                                                                                          
                                                                                                                                                                          The size of the component and its icons.
                                                                                                                                                                          | 'sm'
                                                                                                                                                                          | 'md'
                                                                                                                                                                          | 'lg'
                                                                                                                                                                          'md'
                                                                                                                                                                          
                                                                                                                                                                          The style variant of the button. Governs colors.
                                                                                                                                                                          | 'fill'
                                                                                                                                                                          | 'ghost'
                                                                                                                                                                          | 'outline'
                                                                                                                                                                          'fill'
                                                                                                                                                                          
                                                                                                                                                                          Type
                                                                                                                                                                          | 'default'
                                                                                                                                                                          | 'compact'
                                                                                                                                                                          Description
                                                                                                                                                                          The density of the button. Governs padding and height.
                                                                                                                                                                          Type
                                                                                                                                                                          boolean
                                                                                                                                                                          Description
                                                                                                                                                                          Controls whether the component is interactive. When true, pointer/focus events are blocked, and the component is visually dimmed.
                                                                                                                                                                          Type
                                                                                                                                                                          | 'neutral'
                                                                                                                                                                          | 'primary'
                                                                                                                                                                          | 'danger'
                                                                                                                                                                          | 'persistent-white'
                                                                                                                                                                          | 'persistent-black'
                                                                                                                                                                          | 'inverse'
                                                                                                                                                                          | 'white-persistent'
                                                                                                                                                                          | 'black-persistent'
                                                                                                                                                                          Description
                                                                                                                                                                          The style variant of the button. Governs colors.
                                                                                                                                                                          Type
                                                                                                                                                                          | LucideIcon
                                                                                                                                                                          | ReactElement
                                                                                                                                                                          Description
                                                                                                                                                                          lucide-react icon. Can be supplied as a ReactElement for additional customization.
                                                                                                                                                                          Type
                                                                                                                                                                          | ReactElement
                                                                                                                                                                          | ((
                                                                                                                                                                          props: object,
                                                                                                                                                                          ) => ReactElement)
                                                                                                                                                                          Description
                                                                                                                                                                          Allows you to replace the component's HTML element with a different tag or component. Learn more
                                                                                                                                                                          Type
                                                                                                                                                                          | 'square'
                                                                                                                                                                          | 'rounded'
                                                                                                                                                                          Description
                                                                                                                                                                          Governs the shape of the icon button.
                                                                                                                                                                          Type
                                                                                                                                                                          | 'sm'
                                                                                                                                                                          | 'md'
                                                                                                                                                                          | 'lg'
                                                                                                                                                                          Description
                                                                                                                                                                          The size of the component and its icons.
                                                                                                                                                                          Type
                                                                                                                                                                          | 'fill'
                                                                                                                                                                          | 'ghost'
                                                                                                                                                                          | 'outline'
                                                                                                                                                                          Description
                                                                                                                                                                          The style variant of the button. Governs colors.

                                                                                                                                                                          <FilterPanel.Filter>

                                                                                                                                                                          A collapsible filter section with a trigger that shows the filter's label, count, and indicator. Its children are the filter's control. Expanded by default. Renders a <div> element by default.
                                                                                                                                                                          FilterPanelFilterProps<
                                                                                                                                                                          TDef extends FilterDefinition = FilterDefinition,
                                                                                                                                                                          >
                                                                                                                                                                          PropTypeDefault
                                                                                                                                                                          The filter's definition, from the filter set's filters.
                                                                                                                                                                          IdentifiedFilterDefinition<TDef>
                                                                                                                                                                          React children prop. This is the filter's control, rendered in the content element.
                                                                                                                                                                          Props applied to the content element.
                                                                                                                                                                          | FilterPanelFilterContentProps
                                                                                                                                                                          | undefined
                                                                                                                                                                          Props applied to the count element.
                                                                                                                                                                          | FilterPanelFilterCountProps
                                                                                                                                                                          | undefined
                                                                                                                                                                          The initial open state of the collapsible when rendered. Use when you don't need to control the open state of the collapsible.
                                                                                                                                                                          boolean
                                                                                                                                                                          false
                                                                                                                                                                          
                                                                                                                                                                          The document's text/writing direction.
                                                                                                                                                                          'ltr' | 'rtl'
                                                                                                                                                                          'ltr'
                                                                                                                                                                          
                                                                                                                                                                          Whether the collapsible is disabled.
                                                                                                                                                                          boolean
                                                                                                                                                                          A root node to correctly resolve document in custom environments. i.e., Iframes, Electron.
                                                                                                                                                                          () =>
                                                                                                                                                                          | ShadowRoot
                                                                                                                                                                          | Document
                                                                                                                                                                          | Node
                                                                                                                                                                          Props applied to the indicator element.
                                                                                                                                                                          | FilterPanelFilterIndicatorProps
                                                                                                                                                                          | undefined
                                                                                                                                                                          Customizes how the label renders. Accepts a ReactNode, or a function that receives the resolved string label. The rendered label also names the filter's control. getFilterLabel and value summaries keep the resolved string.
                                                                                                                                                                          | string
                                                                                                                                                                          | number
                                                                                                                                                                          | bigint
                                                                                                                                                                          | ReactElement
                                                                                                                                                                          | Iterable<ReactNode>
                                                                                                                                                                          | ReactPortal
                                                                                                                                                                          | Promise<AwaitedReactNode>
                                                                                                                                                                          | ((
                                                                                                                                                                          label: string,
                                                                                                                                                                          ) => ReactNode)
                                                                                                                                                                          | boolean
                                                                                                                                                                          | null
                                                                                                                                                                          | undefined
                                                                                                                                                                          Props applied to the label element.
                                                                                                                                                                          | FilterPanelFilterLabelProps
                                                                                                                                                                          | undefined
                                                                                                                                                                          When true, the component will not be rendered in the DOM until it becomes visible or active.
                                                                                                                                                                          boolean
                                                                                                                                                                          false
                                                                                                                                                                          
                                                                                                                                                                          The callback invoked when the exit animation completes.
                                                                                                                                                                          () => void
                                                                                                                                                                          Function invoked when the collapsible opens or closes
                                                                                                                                                                          (
                                                                                                                                                                          open: boolean,
                                                                                                                                                                          ) => void
                                                                                                                                                                          The controlled open state of the collapsible
                                                                                                                                                                          boolean
                                                                                                                                                                          Allows you to replace the component's HTML element with a different tag or component. Learn more
                                                                                                                                                                          | ReactElement
                                                                                                                                                                          | ((
                                                                                                                                                                          props: object,
                                                                                                                                                                          ) => ReactElement)
                                                                                                                                                                          Props applied to the trigger element.
                                                                                                                                                                          | FilterPanelFilterTriggerProps
                                                                                                                                                                          | undefined
                                                                                                                                                                          When true, the component will be completely removed from the DOM when it becomes inactive or hidden, rather than just being hidden with CSS.
                                                                                                                                                                          boolean
                                                                                                                                                                          false
                                                                                                                                                                          
                                                                                                                                                                          Type
                                                                                                                                                                          IdentifiedFilterDefinition<TDef>
                                                                                                                                                                          Description
                                                                                                                                                                          The filter's definition, from the filter set's filters.
                                                                                                                                                                          Description
                                                                                                                                                                          React children prop. This is the filter's control, rendered in the content element.
                                                                                                                                                                          Type
                                                                                                                                                                          | FilterPanelFilterContentProps
                                                                                                                                                                          | undefined
                                                                                                                                                                          Description
                                                                                                                                                                          Props applied to the content element.
                                                                                                                                                                          Type
                                                                                                                                                                          | FilterPanelFilterCountProps
                                                                                                                                                                          | undefined
                                                                                                                                                                          Description
                                                                                                                                                                          Props applied to the count element.
                                                                                                                                                                          Type
                                                                                                                                                                          boolean
                                                                                                                                                                          Description
                                                                                                                                                                          The initial open state of the collapsible when rendered. Use when you don't need to control the open state of the collapsible.
                                                                                                                                                                          Type
                                                                                                                                                                          'ltr' | 'rtl'
                                                                                                                                                                          Description
                                                                                                                                                                          The document's text/writing direction.
                                                                                                                                                                          Type
                                                                                                                                                                          boolean
                                                                                                                                                                          Description
                                                                                                                                                                          Whether the collapsible is disabled.
                                                                                                                                                                          Type
                                                                                                                                                                          () =>
                                                                                                                                                                          | ShadowRoot
                                                                                                                                                                          | Document
                                                                                                                                                                          | Node
                                                                                                                                                                          Description
                                                                                                                                                                          A root node to correctly resolve document in custom environments. i.e., Iframes, Electron.
                                                                                                                                                                          Type
                                                                                                                                                                          | FilterPanelFilterIndicatorProps
                                                                                                                                                                          | undefined
                                                                                                                                                                          Description
                                                                                                                                                                          Props applied to the indicator element.
                                                                                                                                                                          Type
                                                                                                                                                                          | string
                                                                                                                                                                          | number
                                                                                                                                                                          | bigint
                                                                                                                                                                          | ReactElement
                                                                                                                                                                          | Iterable<ReactNode>
                                                                                                                                                                          | ReactPortal
                                                                                                                                                                          | Promise<AwaitedReactNode>
                                                                                                                                                                          | ((
                                                                                                                                                                          label: string,
                                                                                                                                                                          ) => ReactNode)
                                                                                                                                                                          | boolean
                                                                                                                                                                          | null
                                                                                                                                                                          | undefined
                                                                                                                                                                          Description
                                                                                                                                                                          Customizes how the label renders. Accepts a ReactNode, or a function that receives the resolved string label. The rendered label also names the filter's control. getFilterLabel and value summaries keep the resolved string.
                                                                                                                                                                          Type
                                                                                                                                                                          | FilterPanelFilterLabelProps
                                                                                                                                                                          | undefined
                                                                                                                                                                          Description
                                                                                                                                                                          Props applied to the label element.
                                                                                                                                                                          Type
                                                                                                                                                                          boolean
                                                                                                                                                                          Description
                                                                                                                                                                          When true, the component will not be rendered in the DOM until it becomes visible or active.
                                                                                                                                                                          Type
                                                                                                                                                                          () => void
                                                                                                                                                                          Description
                                                                                                                                                                          The callback invoked when the exit animation completes.
                                                                                                                                                                          Type
                                                                                                                                                                          (
                                                                                                                                                                          open: boolean,
                                                                                                                                                                          ) => void
                                                                                                                                                                          Description
                                                                                                                                                                          Function invoked when the collapsible opens or closes
                                                                                                                                                                          Type
                                                                                                                                                                          boolean
                                                                                                                                                                          Description
                                                                                                                                                                          The controlled open state of the collapsible
                                                                                                                                                                          Type
                                                                                                                                                                          | ReactElement
                                                                                                                                                                          | ((
                                                                                                                                                                          props: object,
                                                                                                                                                                          ) => ReactElement)
                                                                                                                                                                          Description
                                                                                                                                                                          Allows you to replace the component's HTML element with a different tag or component. Learn more
                                                                                                                                                                          Type
                                                                                                                                                                          | FilterPanelFilterTriggerProps
                                                                                                                                                                          | undefined
                                                                                                                                                                          Description
                                                                                                                                                                          Props applied to the trigger element.
                                                                                                                                                                          Type
                                                                                                                                                                          boolean
                                                                                                                                                                          Description
                                                                                                                                                                          When true, the component will be completely removed from the DOM when it becomes inactive or hidden, rather than just being hidden with CSS.

                                                                                                                                                                          <FilterPanel.FilterTrigger>

                                                                                                                                                                          Expands and collapses the filter's content. Renders the filter's label, count, and indicator when no children are provided. Renders a <button> element by default.
                                                                                                                                                                          PropType
                                                                                                                                                                          React children prop.
                                                                                                                                                                          id attribute. If omitted, a unique identifier will be automatically generated for accessibility.
                                                                                                                                                                          string
                                                                                                                                                                          Allows you to replace the component's HTML element with a different tag or component. Learn more
                                                                                                                                                                          | ReactElement
                                                                                                                                                                          | ((
                                                                                                                                                                          props: object,
                                                                                                                                                                          ) => ReactElement)
                                                                                                                                                                          Description
                                                                                                                                                                          React children prop.
                                                                                                                                                                          Type
                                                                                                                                                                          string
                                                                                                                                                                          Description
                                                                                                                                                                          id attribute. If omitted, a unique identifier will be automatically generated for accessibility.
                                                                                                                                                                          Type
                                                                                                                                                                          | ReactElement
                                                                                                                                                                          | ((
                                                                                                                                                                          props: object,
                                                                                                                                                                          ) => ReactElement)
                                                                                                                                                                          Description
                                                                                                                                                                          Allows you to replace the component's HTML element with a different tag or component. Learn more

                                                                                                                                                                          <FilterPanel.FilterLabel>

                                                                                                                                                                          The filter's label. Renders the resolved label by default. Pass a ReactNode, or a function that receives the resolved string, to customize it. Renders a <span> element by default.
                                                                                                                                                                          PropType
                                                                                                                                                                          Overrides how the label renders. Accepts a ReactNode, or a function that receives the resolved string label. The rendered label also names the filter's control. getFilterLabel and value summaries keep the resolved string.
                                                                                                                                                                          | ReactNode
                                                                                                                                                                          | ((
                                                                                                                                                                          label: string,
                                                                                                                                                                          ) => ReactNode)
                                                                                                                                                                          Allows you to replace the component's HTML element with a different tag or component. Learn more
                                                                                                                                                                          | ReactElement
                                                                                                                                                                          | ((
                                                                                                                                                                          props: object,
                                                                                                                                                                          ) => ReactElement)
                                                                                                                                                                          Type
                                                                                                                                                                          | ReactNode
                                                                                                                                                                          | ((
                                                                                                                                                                          label: string,
                                                                                                                                                                          ) => ReactNode)
                                                                                                                                                                          Description
                                                                                                                                                                          Overrides how the label renders. Accepts a ReactNode, or a function that receives the resolved string label. The rendered label also names the filter's control. getFilterLabel and value summaries keep the resolved string.
                                                                                                                                                                          Type
                                                                                                                                                                          | ReactElement
                                                                                                                                                                          | ((
                                                                                                                                                                          props: object,
                                                                                                                                                                          ) => ReactElement)
                                                                                                                                                                          Description
                                                                                                                                                                          Allows you to replace the component's HTML element with a different tag or component. Learn more

                                                                                                                                                                          <FilterPanel.FilterCount>

                                                                                                                                                                          The number of values selected in the filter. Hidden when the filter is empty. Renders a <span> element by default.
                                                                                                                                                                          PropTypeDefault
                                                                                                                                                                          React children prop. When provided, overrides type-specific content.
                                                                                                                                                                          The badge disabled state.
                                                                                                                                                                          boolean
                                                                                                                                                                          Governs the color and style of the number badge.
                                                                                                                                                                          | 'neutral'
                                                                                                                                                                          | 'neutral-outline'
                                                                                                                                                                          | 'brand'
                                                                                                                                                                          | 'brand-outline'
                                                                                                                                                                          | 'info'
                                                                                                                                                                          | 'success'
                                                                                                                                                                          | 'warning'
                                                                                                                                                                          | 'danger'
                                                                                                                                                                          | 'persistent-black'
                                                                                                                                                                          | 'persistent-white'
                                                                                                                                                                          'neutral'
                                                                                                                                                                          
                                                                                                                                                                          Maximum value to display.
                                                                                                                                                                          number
                                                                                                                                                                          99
                                                                                                                                                                          
                                                                                                                                                                          Allows you to replace the component's HTML element with a different tag or component. Learn more
                                                                                                                                                                          | ReactElement
                                                                                                                                                                          | ((
                                                                                                                                                                          props: object,
                                                                                                                                                                          ) => ReactElement)
                                                                                                                                                                          Governs the size of the badge.
                                                                                                                                                                          | 'xs'
                                                                                                                                                                          | 'sm'
                                                                                                                                                                          | 'md'
                                                                                                                                                                          | 'lg'
                                                                                                                                                                          'md'
                                                                                                                                                                          
                                                                                                                                                                          The numeric value to display.
                                                                                                                                                                          number
                                                                                                                                                                          Description
                                                                                                                                                                          React children prop. When provided, overrides type-specific content.
                                                                                                                                                                          Type
                                                                                                                                                                          boolean
                                                                                                                                                                          Description
                                                                                                                                                                          The badge disabled state.
                                                                                                                                                                          Type
                                                                                                                                                                          | 'neutral'
                                                                                                                                                                          | 'neutral-outline'
                                                                                                                                                                          | 'brand'
                                                                                                                                                                          | 'brand-outline'
                                                                                                                                                                          | 'info'
                                                                                                                                                                          | 'success'
                                                                                                                                                                          | 'warning'
                                                                                                                                                                          | 'danger'
                                                                                                                                                                          | 'persistent-black'
                                                                                                                                                                          | 'persistent-white'
                                                                                                                                                                          Description
                                                                                                                                                                          Governs the color and style of the number badge.
                                                                                                                                                                          Type
                                                                                                                                                                          number
                                                                                                                                                                          Description
                                                                                                                                                                          Maximum value to display.
                                                                                                                                                                          Type
                                                                                                                                                                          | ReactElement
                                                                                                                                                                          | ((
                                                                                                                                                                          props: object,
                                                                                                                                                                          ) => ReactElement)
                                                                                                                                                                          Description
                                                                                                                                                                          Allows you to replace the component's HTML element with a different tag or component. Learn more
                                                                                                                                                                          Type
                                                                                                                                                                          | 'xs'
                                                                                                                                                                          | 'sm'
                                                                                                                                                                          | 'md'
                                                                                                                                                                          | 'lg'
                                                                                                                                                                          Description
                                                                                                                                                                          Governs the size of the badge.
                                                                                                                                                                          Type
                                                                                                                                                                          number
                                                                                                                                                                          Description
                                                                                                                                                                          The numeric value to display.

                                                                                                                                                                          <FilterPanel.FilterIndicator>

                                                                                                                                                                          Indicates whether the filter is expanded. Renders a <span> element by default.
                                                                                                                                                                          PropTypeDefault
                                                                                                                                                                          Indicator icon for the filter trigger.
                                                                                                                                                                          | LucideIcon
                                                                                                                                                                          | ReactNode
                                                                                                                                                                          ChevronDown
                                                                                                                                                                          
                                                                                                                                                                          Allows you to replace the component's HTML element with a different tag or component. Learn more
                                                                                                                                                                          | ReactElement
                                                                                                                                                                          | ((
                                                                                                                                                                          props: object,
                                                                                                                                                                          ) => ReactElement)
                                                                                                                                                                          Type
                                                                                                                                                                          | LucideIcon
                                                                                                                                                                          | ReactNode
                                                                                                                                                                          Description
                                                                                                                                                                          Indicator icon for the filter trigger.
                                                                                                                                                                          Type
                                                                                                                                                                          | ReactElement
                                                                                                                                                                          | ((
                                                                                                                                                                          props: object,
                                                                                                                                                                          ) => ReactElement)
                                                                                                                                                                          Description
                                                                                                                                                                          Allows you to replace the component's HTML element with a different tag or component. Learn more

                                                                                                                                                                          <FilterPanel.FilterContent>

                                                                                                                                                                          The collapsible content of a filter. Renders a <div> element by default.
                                                                                                                                                                          PropType
                                                                                                                                                                          React children prop.
                                                                                                                                                                          id attribute. If omitted, a unique identifier will be automatically generated for accessibility.
                                                                                                                                                                          string
                                                                                                                                                                          Allows you to replace the component's HTML element with a different tag or component. Learn more
                                                                                                                                                                          | ReactElement
                                                                                                                                                                          | ((
                                                                                                                                                                          props: object,
                                                                                                                                                                          ) => ReactElement)
                                                                                                                                                                          Description
                                                                                                                                                                          React children prop.
                                                                                                                                                                          Type
                                                                                                                                                                          string
                                                                                                                                                                          Description
                                                                                                                                                                          id attribute. If omitted, a unique identifier will be automatically generated for accessibility.
                                                                                                                                                                          Type
                                                                                                                                                                          | ReactElement
                                                                                                                                                                          | ((
                                                                                                                                                                          props: object,
                                                                                                                                                                          ) => ReactElement)
                                                                                                                                                                          Description
                                                                                                                                                                          Allows you to replace the component's HTML element with a different tag or component. Learn more
                                                                                                                                                                          Updated by Ryan Bower