How to use react-custom-scrollbars - 2 common examples

To help you get started, we’ve selected a few react-custom-scrollbars examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github dnnsoftware / Dnn.AdminExperience / Modal / lib / Modal.js View on Github external
props.header && _react2.default.createElement(
                    "div",
                    { className: "modal-header" },
                    _react2.default.createElement(
                        "h3",
                        null,
                        props.header
                    ),
                    props.headerChildren,
                    _react2.default.createElement("div", {
                        className: "close-modal-button",
                        dangerouslySetInnerHTML: { __html: _dnnSvgIcons.XThinIcon },
                        onClick: props.onRequestClose })
                ),
                _react2.default.createElement(
                    _reactCustomScrollbars.Scrollbars,
                    { style: scrollBarStyle },
                    _react2.default.createElement(
                        "div",
                        { style: props.contentStyle },
                        props.children
                    )
                )
            );
        }
    }]);
github dnnsoftware / Dnn.Platform / Modal / lib / Modal.js View on Github external
props.header && _react2.default.createElement(
                    "div",
                    { className: "modal-header" },
                    _react2.default.createElement(
                        "h3",
                        null,
                        props.header
                    ),
                    props.headerChildren,
                    _react2.default.createElement("div", {
                        className: "close-modal-button",
                        dangerouslySetInnerHTML: { __html: _dnnSvgIcons.XThinIcon },
                        onClick: props.onRequestClose })
                ),
                _react2.default.createElement(
                    _reactCustomScrollbars.Scrollbars,
                    { style: scrollBarStyle },
                    _react2.default.createElement(
                        "div",
                        { style: props.contentStyle },
                        props.children
                    )
                )
            );
        }
    }]);

react-custom-scrollbars

React scrollbars component

MIT
Latest version published 7 years ago

Package Health Score

61 / 100
Full package analysis

Popular react-custom-scrollbars functions