smart-react-components
Version:
React UI library, wide variety of editable ready to use Styled and React components.
33 lines (32 loc) • 1.06 kB
TypeScript
import React from "react";
import { SizeProps } from "../props/size-props";
import { JSXChild, ValueMix, SetValue } from "../props";
interface Props extends SizeProps {
box?: boolean;
placeholder?: JSXChild;
optionType?: string;
badgeType?: string;
arrow?: boolean;
children: JSX.Element | JSX.Element[];
fill: boolean;
shape: string;
hover: boolean;
waveEffect: string;
disabled: boolean;
active: ValueMix;
setActive: SetValue<ValueMix>;
closeBox?: () => void;
search?: boolean;
}
interface ItemList {
value: JSX.Element[];
active: JSX.Element;
isPlaceholder: boolean;
}
interface Return {
itemList: ItemList;
searchText: string;
setSearchText: React.Dispatch<React.SetStateAction<string>>;
}
declare const _default: ({ size, sizeSm, sizeMd, sizeLg, sizeXl, box, placeholder, optionType, badgeType, arrow, children, fill, shape, hover, waveEffect, disabled, active, setActive, closeBox, search }: Props) => Return;
export default _default;