@clubmed/trident-ui
Version:
Shared ClubMed React UI components
16 lines (15 loc) • 576 B
TypeScript
import { type InputHTMLAttributes } from 'react';
import './controls.css';
export interface FilterProps<Value = string> extends Omit<InputHTMLAttributes<HTMLInputElement>, 'onChange'> {
/**
* The data-testid to apply to the button.
* This is used for testing purposes.
* */
dataTestId?: string;
/**
* Is it attached to a dropdown?
*/
hasDropdown?: boolean;
onChange?: (name: string, value: Value | null) => void;
}
export declare function Filter<Value = string>(props: FilterProps<Value>): import("react/jsx-runtime").JSX.Element;