UNPKG

ds-smart-ui

Version:

Smart UI v1.0.5 — A production-ready React component library by PT Praisindo Teknologi. Covers inputs, navigation, data display, feedback, and layout with a unified design system, semantic Typography tokens, and full Storybook documentation.

39 lines (38 loc) 1.21 kB
import { Props as SelectProps } from 'react-select'; import { FormColorTypes, FormRoundedTypes, FormSizeTypes } from '../../../types/form-types'; export interface Select2Props extends SelectProps { label?: string; placeholder?: string; size?: FormSizeTypes; required?: boolean; showRequired?: boolean; disabled?: boolean; rounded?: FormRoundedTypes; color?: FormColorTypes; helperText?: string; error?: boolean; options: { value: string; label: string; color?: string; id?: string; }[]; id?: string; borderColor?: string; onMenuScrollToBottom?: () => void; isLoadingMore?: boolean; hasMore?: boolean; paginationLoadingMessage?: string; defaultOptions?: { value: string; label: string; color?: string; id?: string; }[]; cacheUniqs?: boolean; onInputChange?: (inputValue: string, actionMeta: any) => void; filterOption?: ((option: any, inputValue: string) => boolean) | null; debounceDelay?: number; } declare const Select2: import('react').ForwardRefExoticComponent<Select2Props & import('react').RefAttributes<HTMLDivElement>>; export default Select2;