import classNames from 'clsx'; import React from 'react'; import SvgIcon from '../icon/svg-icon'; import Text from '../text/text'; interface IIconButton extends React.ButtonHTMLAttributes { /** Class name for the icon. */ iconClassName?: string, /** URL to the svg icon. */ src: string, /** Text to display next ot the button. */ text?: string, /** Don't render a background behind the icon. */ transparent?: boolean, /** Predefined styles to display for the button. */ theme?: 'seamless' | 'outlined', } /** A clickable icon. */ const IconButton = React.forwardRef((props: IIconButton, ref: React.ForwardedRef): JSX.Element => { const { src, className, iconClassName, text, transparent = false, theme = 'seamless', ...filteredProps } = props; return ( ); }); export default IconButton;