UNPKG

@airplane/views

Version:

A React library for building Airplane views. Views components are optimized in style and functionality to produce internal apps that are easy to build and maintain.

31 lines (30 loc) 891 B
import { jsx } from "react/jsx-runtime"; import { Divider as Divider$1 } from "@mantine/core"; import { ComponentErrorBoundary } from "../errorBoundary/ComponentErrorBoundary.js"; import { useCommonLayoutStyle } from "../layout/useCommonLayoutStyle.js"; const DividerComponent = ({ color = "gray.2", className, style, width, height, grow, ...props }) => { const { classes: layoutClasses, cx } = useCommonLayoutStyle({ width, height, grow }); return /* @__PURE__ */ jsx(Divider$1, { color, className: cx(layoutClasses.style, className), style, ...props }); }; const Divider = (props) => /* @__PURE__ */ jsx(ComponentErrorBoundary, { componentName: Divider.componentName, children: /* @__PURE__ */ jsx(DividerComponent, { ...props }) }); Divider.componentName = "Divider"; export { Divider, DividerComponent }; //# sourceMappingURL=Divider.js.map