@findify/react-components
Version:
Findify react UI components
30 lines • 860 B
JavaScript
/**
* @module components/common/Sticky
*/
import cx from 'classnames';
import { jsx as _jsx } from "react/jsx-runtime";
import { jsxs as _jsxs } from "react/jsx-runtime";
export default (function (_ref) {
var theme = _ref.theme,
registerRoot = _ref.registerRoot,
registerContainer = _ref.registerContainer,
registerSizer = _ref.registerSizer,
children = _ref.children,
state = _ref.state,
title = _ref.title;
return /*#__PURE__*/_jsxs("section", {
className: theme.root,
role: "region",
"aria-label": title,
ref: registerRoot,
tabIndex: 0,
children: [/*#__PURE__*/_jsx("div", {
className: cx(theme.container, theme[state]),
ref: registerContainer,
children: children
}), /*#__PURE__*/_jsx("div", {
className: theme.wrapper,
ref: registerSizer
})]
});
});