@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) • 882 B
JavaScript
import { cs } from "../utils/styles.js";
import { omitThemingProps, useStyleConfig } from "../core/theme.js";
import vui from "../core/vui.js";
import { Box } from "../box/box.js";
import { jsx } from "react/jsx-runtime";
//#region src/panel/panel.tsx
/**
* Displays static or partially interactive content, such as text, images or buttons.
* Supports use cases of showing multiple segments of a page, each focusing on different data type or context.
*/
const Panel = vui((props, ref) => {
const { className, ...rest } = omitThemingProps(props);
const styles = useStyleConfig("Panel", props);
return /* @__PURE__ */ jsx(Box, {
bg: "white",
className: cs("vui-panel", className),
p: 2,
ref,
...styles,
...rest
});
});
Panel.displayName = "Panel";
//#endregion
export { Panel, Panel as default };
globalThis.__vuiVersion__ = "5.3.1"
//# sourceMappingURL=panel.js.map