Getting your documentation just right is important, and Redoc comes with many configuration options to help you succeed in that mission. Each deployment type has documentation on how to configure options for that type of Redoc project. This page lists all the options you can use with Redoc. Versions: 2.x
Client-side configurationUsing Redoc as a standalone (HTML or React) tool, these options must be presented in kebab case. For example:
scrollYOffsetbecomesscroll-y-offsetexpandResponsesbecomesexpand-responses
Functional settings
- Basic Options
- Display Options
- Advanced Options
Core Settings
| Option | Description | Default |
|---|---|---|
disableSearch | Disables search indexing and hides search box | false |
minCharacterLengthToInitSearch | Minimum characters for search | 3 |
hideDownloadButtons | Hides the download button | false |
hideLoading | Hides loading animation | false |
Theme settings
You can customize the look and feel of your documentation with these theme options:Check our theme customization guide for detailed examples and best practices.
Additional customization
Security Definition location
You can inject the Security Definitions widget into any place in your definitiondescription. For more information, refer to Security definitions injection.
OpenAPI specification extensions
x-logo- Specify API logox-traitTag- Handle common patterns like Paginationx-codeSamples- Add operation code samplesx-examples- Specify JSON request examplesx-nullable- Mark schema parameters as nullablex-displayName- Set friendly menu category namesx-tagGroups- Group sidebar menu tagsx-servers- Specify different API servers