cdbreact
Version:
Elegant UI Kit and reusable components for building mobile-first, responsive webistes and web apps
46 lines (45 loc) • 1.46 kB
TypeScript
import React from "react";
import PropTypes from "prop-types";
interface Props {
className?: string;
color?: string;
disabled?: [Function, any];
dropleft?: boolean;
dropright?: boolean;
dropup?: boolean;
dropdown?: boolean;
position?: string;
children?: React.ReactNode;
caret?: boolean;
size?: string;
nav?: boolean;
tag?: [Function, string];
onClick?: Function;
isOpen?: Function;
circle?: boolean;
}
declare const DropdownToggle: {
(props: Props): JSX.Element;
defaultProps: {
"aria-haspopup": boolean;
color: string;
tag: string;
};
propTypes: {
className: PropTypes.Requireable<string>;
colors: PropTypes.Requireable<string>;
circle: PropTypes.Requireable<boolean>;
dropleft: PropTypes.Requireable<boolean>;
dropright: PropTypes.Requireable<boolean>;
dropup: PropTypes.Requireable<boolean>;
dropdown: PropTypes.Requireable<boolean>;
position: PropTypes.Requireable<string>;
children: PropTypes.Requireable<PropTypes.ReactNodeLike>;
caret: PropTypes.Requireable<boolean>;
size: PropTypes.Requireable<string>;
nav: PropTypes.Requireable<boolean>;
tag: PropTypes.Requireable<string | ((...args: any[]) => any)>;
};
};
export default DropdownToggle;
export { DropdownToggle as CDBDropdownToggle };