matrix-react-sdk
Version:
SDK for matrix.org using React
18 lines (17 loc) • 708 B
TypeScript
import React from "react";
import { DropdownProps } from "./Dropdown";
export type FilterDropdownOption<FilterKeysType extends string> = {
id: FilterKeysType;
label: string;
description?: string;
};
type FilterDropdownProps<FilterKeysType extends string> = Omit<DropdownProps, "children"> & {
value: FilterKeysType;
options: FilterDropdownOption<FilterKeysType>[];
selectedLabel?: string;
};
/**
* Dropdown styled for list filtering
*/
export declare const FilterDropdown: <FilterKeysType extends string = string>({ value, options, selectedLabel, className, ...restProps }: FilterDropdownProps<FilterKeysType>) => React.ReactElement<FilterDropdownProps<FilterKeysType>>;
export {};