UNPKG

tdesign-react

Version:
24 lines (23 loc) 829 B
import React, { MouseEvent } from 'react'; import { TdSelectInputProps } from './type'; import { SelectInputCommonProperties } from './interface'; import { InputRef } from '../input'; import { StyledProps } from '../common'; export interface RenderSelectMultipleParams { commonInputProps: SelectInputCommonProperties; onInnerClear: (context: { e: MouseEvent<SVGElement>; }) => void; popupVisible: boolean; allowInput: boolean; } export interface SelectInputProps extends TdSelectInputProps, StyledProps { options?: any[]; } export default function useMultiple(props: SelectInputProps): { tags: any[]; tPlaceholder: string; tagInputRef: React.MutableRefObject<InputRef>; multipleInputValue: string; renderSelectMultiple: (p: RenderSelectMultipleParams) => React.JSX.Element; };