@veracity/vui
Version:
Veracity UI is a React component library crafted for use within Veracity applications and pages. Based on Styled Components and @xstyled.
29 lines (27 loc) • 979 B
JavaScript
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/stepperVertical/stepVerticalTitle.tsx
/**
* Implements vertical stepper tail (the vertical line) **
*/
const StepVerticalTitle = vui((props, ref) => {
const { children, className, size = "md", variant = "active", ...rest } = props;
return /* @__PURE__ */ jsx(Box, {
className: cs(stepClassName + "Title"),
color: titleColor[variant],
fontSize: `${size === "md" ? 16 : 14}px`,
fontWeight: boldTitles.includes(variant) ? 600 : void 0,
pt: `${size === "md" ? 4 : 2}px`,
whiteSpace: "nowrap",
...rest,
children
});
});
StepVerticalTitle.displayName = "StepVerticalTitle";
//#endregion
export { StepVerticalTitle, StepVerticalTitle as default };
globalThis.__vuiVersion__ = "5.3.1"
//# sourceMappingURL=stepVerticalTitle.js.map