phx-react
Version:
PHX REACT
24 lines (23 loc) • 803 B
TypeScript
import React from 'react';
type TSelectItem = Array<{
id: number | string;
name: string;
}>;
export interface ComboboxProps {
className?: string;
label?: string;
id?: string;
listOptions: TSelectItem;
defaultValue?: TSelectItem;
placeholder?: string;
onChange?: any;
error?: boolean;
selectFieldPosition?: 'top' | 'bottom';
optionHeight?: number;
disabled?: boolean;
errorMessageCustom?: string;
errorType?: 'required-field' | 'duplicate-field' | 'custom-message';
helpText?: string;
}
export declare const PHXCombobox: ({ className, defaultValue, disabled, error, id, label, listOptions, onChange, optionHeight, placeholder, selectFieldPosition, errorType, errorMessageCustom, helpText, }: ComboboxProps) => React.JSX.Element;
export {};