Layouts are a special type of component that Swagger UI uses as the root component for the entire application. You can define custom layouts in order to have high-level control over what ends up on the page.
By default, Swagger UI uses BaseLayout, which is built into the application. You can specify a different layout to be used by passing the layout’s name as the layout parameter to Swagger UI. Be sure to provide your custom layout as a component to Swagger UI.
For example, if you wanted to create a custom layout that only displayed operations, you could define an OperationsLayout:
Augmenting the default layout
If you’d like to build around the BaseLayout instead of replacing it, you can pull the BaseLayout into your custom layout and use it: