Slots
Put your own markup inside <rapi-doc> with a slot attribute, and it shows at that place in the element. How to use them is in Your Own Markup.
<rapi-doc spec-url="https://rapidocui.com/specs/petstore.yaml"> <img slot="nav-logo" src="/logo.svg" alt="Acme" height="32" /> <p slot="auth">Get a key from the developer console.</p></rapi-doc>Nothing on this page matches.
| Slot | Description |
|---|---|
(default) | Any standard markup placed directly inside the ` |
logo | Custom HTML or image markup to replace the default brand logo in the top header bar. |
header | Custom HTML elements rendered in the top header bar following the spec URL input
controls. |
footer | Custom HTML elements rendered at the bottom of the documentation canvas. |
nav-logo | Custom image or branding markup placed at the top of the sidebar navigation
panel (available in read mode). |
overview | Custom HTML rendered inside the overview section at the top of the document.
Link directly to this anchor using #overview. |
servers | Custom HTML rendered inside the server configuration section located under the
overview container. Link directly using #servers. |
auth | Custom HTML rendered inside the authentication controls panel under the overview
section. Link directly using #auth. |
operations-top | Custom HTML displayed directly above the operations list. Use this slot to
provide global announcements, common headers, or usage instructions applicable across all API
calls. Link directly using #operations-top. |
tag--{tag-name} | Inserts custom HTML under a tag's heading, in read and view modes. The name
is tag-- and the tag name in lowercase kebab-case (the tag
User Management is tag--user-management). |
{operation-id} | Inserts custom HTML inside one operation, in read and view modes. The name is
the operation's element ID: its operationId in kebab-case (getPetById
is get-pet-by-id), or without one its summary or method and path. |