UNPKG

@kadconsulting/dry

Version:
12 lines 683 B
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime"; import { forwardRef } from 'react'; import classnames from 'classnames'; import { Icon } from '../Icons/Icon'; import { AlertCircle } from '../Icons/paths'; import { IconSizes } from '../Icons/Icon/IconTypes'; import './InfoText.scss'; const InfoText = forwardRef(({ id, className, text, ...props }, ref) => { return (_jsxs("div", { id: id, ref: ref, className: classnames(className, 'dry-infotext', 'infoText'), ...props, children: [_jsx(Icon, { Path: AlertCircle, size: IconSizes.SMALL }), _jsx("span", { className: 'text', children: text })] })); }); export default InfoText; //# sourceMappingURL=InfoText.js.map