1 | import React, { ReactNode } from 'react';
|
2 | import { MultiselectTagProps } from './MultiselectTag';
|
3 | import { RenderProp } from './types';
|
4 | import { TextAccessorFn } from './Accessors';
|
5 | export declare type RenderTagProp<TDataItem> = RenderProp<{
|
6 | item: TDataItem;
|
7 | }>;
|
8 | export declare type TagComponentProp = React.ComponentType<MultiselectTagProps>;
|
9 | interface MultiselectTagListProps<TDataItem> {
|
10 | id: string;
|
11 | label?: string;
|
12 | value: readonly TDataItem[];
|
13 | focusedItem?: TDataItem;
|
14 | clearTagIcon: React.ReactNode;
|
15 | textAccessor: TextAccessorFn;
|
16 | onDelete: (dataItem: TDataItem, event: React.MouseEvent<HTMLButtonElement>) => void;
|
17 | renderTagValue?: RenderTagProp<TDataItem>;
|
18 | tagOptionComponent?: TagComponentProp;
|
19 | disabled?: readonly TDataItem[] | boolean;
|
20 | readOnly?: boolean;
|
21 | children?: ReactNode;
|
22 | }
|
23 | declare function MultiselectTagList<TDataItem>({ id, value, textAccessor, label, disabled, readOnly, onDelete, children, clearTagIcon, renderTagValue, tagOptionComponent: TagOption, }: MultiselectTagListProps<TDataItem>): JSX.Element;
|
24 | export default MultiselectTagList;
|
25 |
|
\ | No newline at end of file |