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.

30 lines (28 loc) 902 B
import { cs } from "../utils/styles.js"; import { useStyleConfig } from "../core/theme.js"; import vui from "../core/vui.js"; import { Box } from "../box/box.js"; import { useHeaderContext } from "./context.js"; import { jsx } from "react/jsx-runtime"; //#region src/header/headerContent.tsx /** Controls max-width of the content and centers itself horizontally. */ const HeaderContent = vui((props, ref) => { const { className, ...rest } = props; const styles = useStyleConfig("Header", useHeaderContext()); return /* @__PURE__ */ jsx(Box, { centerV: true, className: cs("vui-headerContent", className), h: 1, mx: "auto", position: "relative", ref, w: 1, ...styles.content, ...rest }); }); HeaderContent.displayName = "HeaderContent"; //#endregion export { HeaderContent, HeaderContent as default }; globalThis.__vuiVersion__ = "5.3.1" //# sourceMappingURL=headerContent.js.map