Skip to content
Foldocs
On this pageConfiguration
Components

Banner

Configure a site-wide announcement above the shared navigation.

Foldocs banners are configured once for the application rather than repeated inside individual MDX pages. They appear above the shared landing and docs navigation.

Configuration

ts
import { defineConfig } from 'foldocs'

export default defineConfig({
  banner: {
    id: 'v1-release',
    content: 'Version 1 is available.',
    href: '/en/docs/releases/v1',
    variant: 'rainbow',
    dismissible: true,
  },
})

Properties

PropertyTypeDescription
contentstringAnnouncement text.
hrefstringOptional destination for the announcement.
variantdefault | rainbowVisual treatment.
dismissiblebooleanWhether the close action is shown.
idstringPersistence key for dismissed state.

Use a stable id when dismissal should survive navigation and later visits.

Last updated Aug 2, 2026