Skip to content

ButterIX v1 is out: versions, multiple languages, Ask AI, and a per-site MCP server, all built in. →

Banner

<Banner> is an in-page notice bar for deprecations and migrations.

An in-page notice bar, good for flagging deprecations or migrations at the top of a page. For site-wide announcements, use announcement in docs.yml.

<Banner dismissible variant="subtle">
  This in-page notice can be dismissed, and it stays hidden after a page refresh.
</Banner>

This in-page notice can be dismissed, and it stays hidden after a page refresh.

dismissiblebooleanDefault false
Show a close button; the dismissed state is saved in the browser.
variantsolid | subtleDefault solid
subtle uses a light background.
idstring
Key for remembering the dismissed state; defaults to a hash of the content (so it reappears when the content changes).