UNPKG

@patternfly/react-core

Version:

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

12 lines 1.15 kB
import { __rest } from "tslib"; import { jsx as _jsx } from "react/jsx-runtime"; import { forwardRef } from 'react'; import styles from '@patternfly/react-styles/css/components/Panel/panel.mjs'; import { css } from '@patternfly/react-styles'; const PanelBase = (_a) => { var { className, children, variant, isScrollable, isAutoHeight, hasNoBorder, isFullHeight, isGlass, isPill, innerRef } = _a, props = __rest(_a, ["className", "children", "variant", "isScrollable", "isAutoHeight", "hasNoBorder", "isFullHeight", "isGlass", "isPill", "innerRef"]); return (_jsx("div", Object.assign({ className: css(styles.panel, variant && styles.modifiers[variant], isScrollable && styles.modifiers.scrollable, isAutoHeight && styles.modifiers.scrollableAutoHeight, hasNoBorder && styles.modifiers.noBorder, isFullHeight && styles.modifiers.fullHeight, isGlass && styles.modifiers.glass, isPill && styles.modifiers.pill, className), ref: innerRef }, props, { children: children }))); }; export const Panel = forwardRef((props, ref) => _jsx(PanelBase, Object.assign({ innerRef: ref }, props))); Panel.displayName = 'Panel'; //# sourceMappingURL=Panel.js.map