zent
Version:
一套前端设计语言和基于React的实现
11 lines (10 loc) • 646 B
TypeScript
/// <reference types="react" />
import type { ISelectItem, ISelectCommonProps } from './Select';
export interface ISelectTagProps<Key extends string | number = string | number, Item extends ISelectItem<Key> = ISelectItem<Key>> {
item: Item;
onRemove(item: Item): void;
renderValue?: ISelectCommonProps<Key, Item>['renderValue'];
}
declare function SelectTag<Key extends string | number = string | number, Item extends ISelectItem<Key> = ISelectItem<Key>>({ item, onRemove, renderValue }: ISelectTagProps<Key, Item>): JSX.Element;
declare const _default: import("react").MemoExoticComponent<typeof SelectTag>;
export default _default;