UNPKG

@helpwave/hightide

Version:

helpwave's component and theming library

56 lines 1.63 kB
// src/components/layout-and-navigation/VerticalDivider.tsx import { jsx, jsxs } from "react/jsx-runtime"; var VerticalDivider = ({ width = 1, height = 100, strokeWidth = 4, dashGap = 4, dashLength = 4 }) => { return /* @__PURE__ */ jsx("div", { style: { width: width + "px", height: height + "px" }, children: /* @__PURE__ */ jsxs( "svg", { width, height, viewBox: `0 0 ${width} ${height}`, fill: "none", xmlns: "http://www.w3.org/2000/svg", children: [ /* @__PURE__ */ jsx( "line", { opacity: "0.5", x1: width / 2, y1: height, x2: width / 2, y2: "0", stroke: "url(#paint_linear)", strokeWidth, strokeDasharray: `${dashLength} ${dashLength + dashGap}`, strokeLinecap: "round" } ), /* @__PURE__ */ jsx("defs", { children: /* @__PURE__ */ jsxs( "linearGradient", { id: "paint_linear", x1: width / 2, y1: "0", x2: width / 2, y2: height, gradientUnits: "userSpaceOnUse", children: [ /* @__PURE__ */ jsx("stop", { stopOpacity: "0", stopColor: "currentColor" }), /* @__PURE__ */ jsx("stop", { offset: "0.5", stopColor: "currentColor" }), /* @__PURE__ */ jsx("stop", { offset: "1", stopColor: "currentColor", stopOpacity: "0" }) ] } ) }) ] } ) }); }; export { VerticalDivider }; //# sourceMappingURL=VerticalDivider.mjs.map