UNPKG

@veracity/vui

Version:

Veracity UI is a React component library crafted for use within Veracity applications and pages. Based on Styled Components and @xstyled.

25 lines (23 loc) 751 B
import { cs } from "../utils/styles.js"; import { useStyleConfig } from "../core/theme.js"; import vui from "../core/vui.js"; import { Icon } from "../icon/icon.js"; import { useLinkContext } from "./context.js"; import { jsx } from "react/jsx-runtime"; //#region src/link/linkIcon.tsx /** Displays an icon within the Link. */ const LinkIcon = vui((props, ref) => { const { className, ...rest } = props; const styles = useStyleConfig("Link", useLinkContext()); return /* @__PURE__ */ jsx(Icon, { className: cs("vui-linkIcon", className), ref, ...styles.icon, ...rest }); }); LinkIcon.displayName = "LinkIcon"; //#endregion export { LinkIcon, LinkIcon as default }; globalThis.__vuiVersion__ = "5.3.1" //# sourceMappingURL=linkIcon.js.map