How to use the @mdx-js/react.MDXProvider function in @mdx-js/react

To help you get started, we’ve selected a few @mdx-js/react 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 reason-association / reasonml.org / layouts / MainLayout.bs.js View on Github external
}, React.createElement("div", {
                      className: "w-full text-night font-base"
                    }, React.createElement(Navigation.make, {
                          isOverlayOpen: match$1[0],
                          toggle: (function (param) {
                              return Curry._1(setIsOpen, (function (prev) {
                                            return !prev;
                                          }));
                            }),
                          route: router.route
                        }), React.createElement("div", {
                          className: "flex justify-center"
                        }, React.createElement("main", {
                              className: "mt-32 lg:align-center w-full px-4 max-w-xl ",
                              style: minWidth
                            }, React.createElement(React$1.MDXProvider, {
                                  components: components,
                                  children: React.createElement("div", {
                                        className: "w-full max-w-lg"
                                      }, children)
                                }))))));
}

@mdx-js/react

React context for MDX

MIT
Latest version published 1 month ago

Package Health Score

97 / 100
Full package analysis