Sign Up for Free

RunKit +

Try any Node.js package right in your browser

This is a playground to test code. It runs a full Node.js environment and already has all of npm’s 1,000,000+ packages pre-installed, including swagger-ui-react-enhanced with all npm packages installed. Try it out:

require("react/package.json"); // react is a peer dependency. require("react-dom/package.json"); // react-dom is a peer dependency. var swaggerUiReactEnhanced = require("swagger-ui-react-enhanced")

This service is provided by RunKit and is not affiliated with npm, Inc or the package authors.

swagger-ui-react-enhanced v3.21.4


swagger-ui-react-enhanced is based on swagger-ui-react, intend to add some UI customization ability via options.

  • Labels customizable:

    localization: {
        Parameters: '参数',
        Responses: '返回',
        ParamName: '名称',
        ParamDescription: '描述',
        ParamExampleValue: '示例',
        ParamExampleModel: '模型',
        ParamContentType: '参数类型',
        ParamRequired: '必填',
        ParamEnumAvailableValues: '可选值',
        ParamDefaultValue: '默认值',
        ParamDeprecated: '弃用',
        NoParameters: '没有参数',
        RespContentType: '返回类型',
        RespCode: '代码',
        RespDescription: '描述',
        RespLinks: '相关链接',
        Schemas: '模式',
        Models: '模型'
  • showInfo: Whether to show Info part, default to true

  • showSchemes: Whether to show Schemes selection dropdown, default to true

  • allowTryItOut: Allow Try it out button or not, default to true

  • allowAuthorize: Allow Authorize button or not, default to true

  • allowFilter: Allow operation filter or not, default to false

  • allowSwitchContentType: Allow content type switching or not (request/response), default to true

For anything else, check the Swagger-UI repository.


RunKit is a free, in-browser JavaScript dev environment for prototyping Node.js code, with every npm package installed. Sign up to share your code.
Sign Up for Free