UNPKG

@bothub-chat/ui

Version:

Bothub UI Components

27 lines (26 loc) 1.52 kB
import { SelectModalGeneralProps } from './select-modal'; import { SelectFieldInputChangeEventHandler, SelectFieldInputType } from './types'; import { UseSelectFieldProps } from './useSelectField'; export type SelectFieldProps = { className?: string; label?: string | boolean | React.ReactNode; placeholder?: string; fullWidth?: boolean; error?: string; skeleton?: boolean; searchSampleIcon?: boolean; enableInput?: boolean; inputType?: SelectFieldInputType; inputValue?: string; clearable?: boolean; loading?: boolean; dataTest?: string; onInputChange?: SelectFieldInputChangeEventHandler; onPointerLeave?: React.PointerEventHandler<HTMLDivElement>; } & SelectModalGeneralProps & UseSelectFieldProps & React.PropsWithChildren; export declare const SelectField: ({ className, label, placeholder, data, fullWidth, contentWidth, error, skeleton, blur, size, disableSelect, disableScrollbar, empty, after, loading, searchSampleIcon, enableInput, inputType, inputValue: initialInputValue, clearable, disablePortal, tabs, search, searchPlaceholder, resetStyleState, children, modalWidth, dataTest, selectedColor, compactWidth, modalStyles, openedModel, onSearch, onOptionClick, onGroupCheckboxClick, onInputChange, onPointerLeave, ...useSelectFieldProps }: SelectFieldProps) => import("react/jsx-runtime").JSX.Element; export * from './types'; export * from './styled'; export * from './context'; export * from './select-modal'; export * from './useSelectField';