@wordpress/components
Version:
UI components for WordPress.
16 lines (15 loc) • 531 B
JavaScript
import { jsx, jsxs } from "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__ */ jsxs("div", {
className: "components-panel__header",
children: [label && /* @__PURE__ */ jsx("h2", { children: label }), children]
});
}
export { PanelHeader as default };
//# sourceMappingURL=header.mjs.map