Getting started
Install
npm install docusaurus-plugin-banner
Minimum config
Add the plugin to your docusaurus.config.ts (or .js):
// docusaurus.config.ts
export default {
plugins: [
[
'docusaurus-plugin-banner',
{
content: '🎉 Welcome to our documentation!',
},
],
],
};
That's it. The banner appears at the very top of the site and can be dismissed — its state is stored in localStorage under docusaurus-banner-dismissed by default.
Next
- See Configuration for the full option list
- See Multiple banners if you need more than one