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.

31 lines (29 loc) 1.04 kB
import { cs } from "../utils/styles.js"; import vui from "../core/vui.js"; import { Box } from "../box/box.js"; import { boldTitles, stepClassName, titleColor } from "./consts.js"; import { jsx } from "react/jsx-runtime"; //#region src/stepperHorizontal/stepHorizontalTitle.tsx /** * Implements Horizontal stepper tail (the Horizontal line) ** */ const StepHorizontalTitle = vui((props, ref) => { const { children, className, size = "md", variant = "active", ...rest } = props; return /* @__PURE__ */ jsx(Box, { className: cs(stepClassName + "Title"), color: titleColor[variant], display: "block", fontSize: `${size === "md" ? 16 : 14}px`, fontWeight: boldTitles.includes(variant) ? 600 : void 0, pt: `${size === "md" ? 4 : 2}px`, textAlign: "center", whiteSpace: "nowrap", ...rest, children }); }); StepHorizontalTitle.displayName = "StepHorizontalTitle"; //#endregion export { StepHorizontalTitle, StepHorizontalTitle as default }; globalThis.__vuiVersion__ = "5.3.1" //# sourceMappingURL=stepHorizontalTitle.js.map