UNPKG

rsuite

Version:

A suite of react components

23 lines (22 loc) 990 B
import React from 'react'; import { InputPickerProps } from '../InputPicker/InputPicker'; import { TagOnlyProps } from '../InputPicker/InputPickerContext'; import type { ItemDataType } from '../internals/types'; import type { PickerComponent } from '../internals/Picker/types'; import type { CheckboxProps } from '../Checkbox'; export interface TagPickerProps<V = any> extends Omit<InputPickerProps<V>, 'renderValue'>, Partial<TagOnlyProps> { /** * Custom render checkbox on menu item * @version 5.47.0 **/ renderMenuItemCheckbox?: (checkboxProps: CheckboxProps) => React.ReactNode; /** Custom render selected items */ renderValue?: (values: V[], items: ItemDataType<V>[], selectedElement: React.ReactNode) => React.ReactNode; } /** * `TagPicker` component enables multi-selection by tags and supports new options. * * @see https://rsuitejs.com/components/tag-picker/ */ declare const TagPicker: PickerComponent<TagPickerProps>; export default TagPicker;