banner property in your docs.json:
Properties
The banner message. Supports plain text and Markdown formatting.
Whether users can dismiss the banner. When
true, users can close the banner and it won’t reappear for their session. Defaults to false.