@porsche-design-system/components-react
Version:
Porsche Design System is a component library designed to help developers create the best experience for software or services distributed by Dr. Ing. h.c. F. Porsche AG.
13 lines (10 loc) • 715 B
JavaScript
import { jsx, jsxs } from 'react/jsx-runtime';
import 'react';
import '../../provider.mjs';
import { PButton } from '../components/button.wrapper.mjs';
const DialogBase = ({ children,
// host,
inert, containerClass, ariaAttributes, dismissable = false, header, footer, subFooter, }) => {
return (jsx("dialog", { inert: inert, tabIndex: -1, ...(ariaAttributes ?? {}), children: jsx("div", { className: "scroller", children: jsxs("div", { className: containerClass, children: [dismissable && (jsx(PButton, { className: "dismiss", compact: true, type: "button", hideLabel: true, icon: "close", children: `Dismiss ${containerClass}` })), header, children, footer, subFooter] }) }) }));
};
export { DialogBase };