@intility/bifrost-react
Version:
React library for Intility's design system, Bifrost.
17 lines (16 loc) • 600 B
JavaScript
import { jsx as _jsx } from "react/jsx-runtime";
import { forwardRef } from "react";
import { FontAwesomeIcon } from "@fortawesome/react-fontawesome";
import classNames from "classnames";
/**
* Font awesome icon wrapper
*/ const Icon = /*#__PURE__*/ forwardRef(({ marginLeft, marginRight, className, ...props }, ref)=>/*#__PURE__*/ _jsx(FontAwesomeIcon, {
ref: ref,
...props,
className: classNames(className, {
"bf-icon-margin-left": marginLeft,
"bf-icon-margin-right": marginRight
})
}));
Icon.displayName = "Icon";
export default Icon;