UNPKG

oneframe-react

Version:

Oneframe React ## Components, Hooks, Helper Functions & State Management

45 lines (44 loc) 1.25 kB
import React, { ReactNode } from 'react'; import { IValidate } from '../../Form/type'; export interface ISelectProps extends OptionsData { className?: string; variant?: 'standard' | 'filled' | 'outlined'; caption?: string; errorText?: string; helperText?: React.ReactNode; leftAdornments?: () => ReactNode | string; rightAdornments?: () => ReactNode | string; captionActive?: boolean; readOnly?: boolean; disableUnderline?: boolean; onRef?: (val: any) => void; id: string; name: string; onChange?: (val: any) => void; onClick?: (e?: any) => void; defaultValue?: string | number; emptyValue?: string; validate?: IValidate[]; setValidate?: any; validateMessages?: any; submitStatus?: boolean; disabled?: boolean; required?: boolean; fullWidth?: boolean; menuPosition?: IMenuPosition; } export declare type IMenuPosition = 'top' | 'bottom'; export declare type OptionsData = { options: IData; }; export interface IData { data: any[]; displayValue: string; displayField: string; selected?: any; disabled?: any; } export interface IMultiSelectProps extends ISelectProps { multipleSelectCountText?: string; viewChip?: boolean; }