Skip to main content

Definition

Assembly: Mintlify.Core.dll Namespace: Mintlify.Core.Models Inheritance: System.Object

Syntax

Summary

Represents the primary navigation configuration for Mintlify navbar. Can be a button configuration or a GitHub configuration.

Constructors

.ctor

Initializes a new instance of the PrimaryNavigationConfig class.

Syntax

.ctor

Initializes a new instance of the PrimaryNavigationConfig class for a button.

Syntax

Parameters

.ctor

Initializes a new instance of the PrimaryNavigationConfig class for GitHub.

Syntax

Parameters

.ctor Inherited

Inherited from object

Syntax

Properties

Href

Gets or sets the href URL for the navigation item.

Syntax

Property Value

Type: string?

Label

Gets or sets the label text for button-type navigation items.

Syntax

Property Value

Type: string?

Type

Gets or sets the type of navigation item (e.g., “button”, “github”).

Syntax

Property Value

Type: string?

Methods

Button

Creates a button-type navigation configuration.

Syntax

Parameters

Returns

Type: Mintlify.Core.Models.PrimaryNavigationConfig A PrimaryNavigationConfig configured as a button.

Equals Inherited Virtual

Inherited from object

Syntax

Parameters

Returns

Type: bool

Equals Inherited

Inherited from object

Syntax

Parameters

Returns

Type: bool

GetHashCode Inherited Virtual

Inherited from object

Syntax

Returns

Type: int

GetType Inherited

Inherited from object

Syntax

Returns

Type: System.Type

GitHub

Creates a GitHub-type navigation configuration.

Syntax

Parameters

Returns

Type: Mintlify.Core.Models.PrimaryNavigationConfig A PrimaryNavigationConfig configured for GitHub.

MemberwiseClone Inherited

Inherited from object

Syntax

Returns

Type: object

ReferenceEquals Inherited

Inherited from object

Syntax

Parameters

Returns

Type: bool

ToString Override

Returns the string representation of the navigation configuration.

Syntax

Returns

Type: string The href URL or empty string.

ToString Inherited Virtual

Inherited from object

Syntax

Returns

Type: string?