payzli-ui-aryan
Version:
A custom react components library
45 lines (44 loc) • 1.35 kB
TypeScript
import { CSSProperties } from "react";
import { ISelectInput } from ".";
export interface ISelectProps {
parentStyle?: object;
parentClass?: string;
icon?: string;
children: React.ReactNode;
ButtonProps?: any;
iconWidth?: string;
iconHeight?: string;
hoverTrigger?: boolean;
title?: string;
titleClass?: string;
target?: React.ReactNode;
iconContainerClass?: string;
dropdownClass?: string;
position?: "left" | "right" | "bottom" | "bottom-left" | "bottom-right" | "top";
mouseoverTitle?: string;
disableHoverOut?: boolean;
}
export interface IPopupSelect {
target: React.ReactNode;
value: any;
setValue: (value: any) => void;
selectOptions: ISelectInput[];
selectStyles?: any;
popupParentClass?: string;
popupStyle?: CSSProperties;
CustomOption?: React.FC<any>;
ref?: any;
isLoading?: boolean;
handlePopupVisible?: (visible: boolean) => void;
position?: "left" | "right" | "bottom" | "bottom-left" | "bottom-right" | "top" | "inherit";
isMulti?: boolean;
type?: "default" | "icon-leading" | "avatar-leading" | "dot-leading";
iconClass?: string;
iconContainerClass?: string;
dropdownClass?: string;
id?: string;
formStyle?: CSSProperties;
formClass?: string;
label?: string;
required?: boolean;
}