import { ReactElement, ReactNode } from 'react'; export interface IconTextProps { children: ReactNode; iconBefore?: ReactNode; iconAfter?: ReactNode; inline?: boolean; } /** * Put an icon next to some text. * * The icon and text will be vertically centered, with standard spacing between. */ declare function IconText({ children, iconBefore, iconAfter, inline }: IconTextProps): ReactElement; declare namespace IconText { var propTypes: { /** * The text. A string is recommended, but you can put an element in here if * you think it's right. If you do, it should be inline-level, * using ``s instead of `
`s. */ children: any; /** * An icon to place before the text. If the value is a string, it should name an * Assembly icon. If you bring your own SVG or want finer-grained control over * how the Icon component is used, pass an element. */ iconBefore: any; /** * An icon to place after the text. See details documented for `iconBefore`. */ iconAfter: any; /** * A boolean indicating whether the component's wrapper element should be * 'flex' (false) or 'inline-flex' (true). */ inline: any; }; } export default IconText;