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.

37 lines (35 loc) 926 B
import { cs } from "../utils/styles.js"; import { useStyleConfig } from "../core/theme.js"; import vui from "../core/vui.js"; import { Link } from "../link/link.js"; import { useFooterContext } from "./context.js"; import { jsx } from "react/jsx-runtime"; //#region src/footer/footerLink.tsx /** Individual link item of the Footer. */ const FooterLink = vui((props, ref) => { const { className, py, ...rest } = props; const styles = useStyleConfig("Footer", useFooterContext()); return /* @__PURE__ */ jsx(Link, { className: cs("vui-footerLink", className), display: "inline-block", py: py ?? { _: .5, xs: 0, sm: 0, md: .5 }, ref, size: { _: "sm", md: "md" }, variant: "white", ...styles.link, ...rest }); }); FooterLink.displayName = "FooterLink"; //#endregion export { FooterLink, FooterLink as default }; globalThis.__vuiVersion__ = "5.3.1" //# sourceMappingURL=footerLink.js.map