UNPKG

@iobroker/adapter-react

Version:

React classes to develop admin interfaces for ioBroker with react.

39 lines (38 loc) 1.15 kB
export default ExpertIcon; export type ExpertIconProps = { /** * The width in pixels of the icon. */ width?: number; /** * The height in pixels of the icon. */ height?: number; /** * Click handler. */ onClick?: (e: React.MouseEvent) => void; /** * The class name for the SVG element. */ className?: string; }; /** * @typedef {object} ExpertIconProps * @property {number} [width] The width in pixels of the icon. * @property {number} [height] The height in pixels of the icon. * @property {(e: React.MouseEvent) => void} [onClick] Click handler. * @property {string} [className] The class name for the SVG element. * * @extends {React.Component<ExpertIconProps>} */ declare function ExpertIcon(props: any): JSX.Element; declare namespace ExpertIcon { namespace propTypes { const onClick: PropTypes.Requireable<(...args: any[]) => any>; const width: PropTypes.Requireable<string | number>; const height: PropTypes.Requireable<string | number>; const className: PropTypes.Requireable<string>; } } import PropTypes from "prop-types";