UNPKG

@patternfly/react-core

Version:

This library provides a set of common React components for use with the PatternFly reference implementation.

16 lines 788 B
import { __rest } from "tslib"; import { jsx as _jsx } from "react/jsx-runtime"; import styles from '@patternfly/react-styles/css/components/Popover/popover.mjs'; import { css } from '@patternfly/react-styles'; export const PopoverPosition = { top: 'top', bottom: 'bottom', left: 'left', right: 'right' }; export const PopoverDialog = (_a) => { var { position = 'top', children = null, className = null } = _a, props = __rest(_a, ["position", "children", "className"]); return (_jsx("div", Object.assign({ className: css(styles.popover, styles.modifiers[position] || styles.modifiers.top, className), role: "dialog", "aria-modal": "true" }, props, { children: children }))); }; PopoverDialog.displayName = 'PopoverDialog'; //# sourceMappingURL=PopoverDialog.js.map