UNPKG

@wordpress/components

Version:
21 lines (20 loc) • 706 B
"use strict"; Object.defineProperties(exports, { __esModule: { value: true }, [Symbol.toStringTag]: { value: "Module" } }); let react_jsx_runtime = require("react/jsx-runtime"); // packages/components/src/panel/header.tsx /** * `PanelHeader` renders the header for the `Panel`. * This is used by the `Panel` component under the hood, * so it does not typically need to be used. */ function PanelHeader({ label, children }) { return /* @__PURE__ */ (0, react_jsx_runtime.jsxs)("div", { className: "components-panel__header", children: [label && /* @__PURE__ */ (0, react_jsx_runtime.jsx)("h2", { children: label }), children] }); } exports.default = PanelHeader; //# sourceMappingURL=header.cjs.map