"use client" import * as React from "react" import { cn } from "../../lib/utils" export interface FilterBarProps extends React.ComponentProps<"div"> { /** Accessible name for the active-filter group. */ "aria-label"?: string } /** * Inline filter chip row — wraps active FilterPill chips, Add filter, and Clear all in hub toolbars. * * Forwards its ref because whether this rail has wrapped is what tells the * toolbar its row is out of horizontal room (see `useWrapCrowding`), and the * package still supports React 18, where `ref` is not an ordinary prop. */ export const FilterBar = React.forwardRef( function FilterBar({ className, "aria-label": ariaLabel = "Active filters", ...props }, ref) { return (
) }, ) export type FilterBarAddButtonProps = React.ButtonHTMLAttributes /** Dashed “Add filter” affordance at the end of a {@link FilterBar}. */ export function FilterBarAddButton({ className, type = "button", children = "Add filter", ...props }: FilterBarAddButtonProps) { return (