This is a Material UI wrapper for ReDoc
The aim of this wrapper is to provide theming support for ReDoc's RedocStandalone
using Material UI's Theme
Install using npm:
npm i redoc-material-ui @material-ui/core react react-dom styled-components
import the MuiRedocStandalone
component to render the API definition
import { MuiRedocStandalone } from "redoc-material-ui";
and use it somewhere in your component:
<MuiRedocStandalone specUrl="url/to/your/spec" />
The component uses useTheme hook to get the Theme object for your components and apply it appropriately to the component
You can also provide your own Material UI theme to the component
<MuiRedocStandalone specUrl="url/to/your/spec" theme={your_mui_theme} />