UNPKG

@primer/components

Version:
16 lines (15 loc) 846 B
import React from 'react'; import { GroupedListProps, ListPropsBase } from '../ActionList/List'; import { TextInputProps } from '../TextInput'; export interface FilteredActionListProps extends Partial<Omit<GroupedListProps, keyof ListPropsBase>>, ListPropsBase { loading?: boolean; placeholderText: string; filterValue?: string; onFilterChange: (value: string, e: React.ChangeEvent<HTMLInputElement>) => void; textInputProps?: Partial<Omit<TextInputProps, 'onChange'>>; inputRef?: React.RefObject<HTMLInputElement>; } export declare function FilteredActionList({ loading, placeholderText, filterValue: externalFilterValue, onFilterChange, items, textInputProps, inputRef: providedInputRef, ...listProps }: FilteredActionListProps): JSX.Element; export declare namespace FilteredActionList { var displayName: string; }