
Add visual documentation to your components
released May 14, 2025
npm install strapi-plugin-component-docsThis Strapi plugin adds an input component to the Strapi admin panel that allows users to view documentation related to a component via a modal or external link. It is particularly useful for displaying component-specific documentation directly in the Strapi admin interface.


disableIframe is false), it shows the documentation inside a modal as an embedded iframe.disableIframe is true), it opens the documentation link in a new browser tab.To install the plugin, you can use npm or yarn:
npm install strapi-plugin-component-docsor
yarn add strapi-plugin-component-docsAfter installing the plugin, it will add a new input field in the component settings within the Strapi admin panel. The field will have the option to either:
disableIframe is false).disableIframe is true).You can configure the input field using the following options:
true, the documentation will open in a new browser tab rather than inside an iframe.{
"type": "text",
"customField": "documentationLink",
"options": {
"url": "https://example.com/docs",
"disableIframe": false
}
}disableIframe is set to false, it opens a modal with an iframe displaying the documentation.disableIframe is true, the plugin opens the documentation in a new browser tab.If you do not want the docsUrl field to appear in your API responses (which is likely, as it is a UI-related field), you can modify your Strapi project's api.ts file to exclude this field.
Add custom field name array to prevent it from being included in the API response:
api.ts configuration:export default ({ env }) => ({
responses: {
privateAttributes: [
// Custom field name
'docsUrl',
// ...
],
},
// ...
});This ensures that the field will not be included in the API responses.
MIT License.
undefinedShare your work with the community and get it listed in the Strapi ecosystem for everyone to discover and use.
Submit
