Definition
Assembly: Mintlify.Core.dll Namespace: Mintlify.Core.ModelsSyntax
Summary
Represents the banner configuration for displaying announcements or notifications in the Mintlify documentation site.Remarks
This configuration allows you to display a banner at the top of your documentation for important announcements, updates, or notifications. The banner supports MDX formatting.Constructors
.ctor
Syntax
.ctor Inherited
Inherited from
objectSyntax
Properties
Color
Gets or sets a custom banner background color.Syntax
Property Value
Type:Mintlify.Core.Models.ColorPairConfig?
Remarks
When set, this takes precedence over the color implied by BannerConfig.Type. Banner text is white, so choose a background dark enough to remain legible. If only one of light or dark is provided, it is used in both modes. See https://www.mintlify.com/docs/components/banner.Content
Gets or sets the content to display in the banner.Syntax
Property Value
Type:string?
Remarks
The text or MDX content that will be displayed in the banner. MDX formatting is supported, allowing for rich content including links, emphasis, and other formatting. This content should be concise but informative.Dismissible
Gets or sets whether to show a dismiss button on the banner.Syntax
Property Value
Type:bool?
Remarks
When true, displays a dismiss button (X) on the right side of the banner, allowing users to close the banner. When false or not specified, the banner cannot be dismissed by users and will always be visible.Type
Gets or sets the visual style of the banner.Syntax
Property Value
Type:string?
Remarks
Controls the background color so visitors can recognize urgency. Defaults toinfo. Valid values:
See https://www.mintlify.com/docs/components/banner.
Methods
Equals Inherited Virtual
Inherited from
objectSyntax
Parameters
Returns
Type:bool
Equals Inherited
Inherited from
objectSyntax
Parameters
Returns
Type:bool
GetHashCode Inherited Virtual
Inherited from
objectSyntax
Returns
Type:int
GetType Inherited
Inherited from
objectSyntax
Returns
Type:System.Type
MemberwiseClone Inherited
Inherited from
objectSyntax
Returns
Type:object
ReferenceEquals Inherited
Inherited from
objectSyntax
Parameters
Returns
Type:bool
ToString Inherited Virtual
Inherited from
objectSyntax
Returns
Type:string?