Skip to main content

Definition

Assembly: Mintlify.Core.dll Namespace: Mintlify.Core.Models

Syntax

Summary

Represents a menu item configuration in Mintlify navigation.

Remarks

Menu items appear as dropdown menu options within tabs. The item name is required.

Constructors

.ctor

Syntax

.ctor Inherited

Inherited from object

Syntax

Properties

Description

Gets or sets the description of the menu item.

Syntax

Property Value

Type: string?

Remarks

Provides additional descriptive text for the menu item.

Directory

Gets or sets the directory layout for this menu item and its descendants.

Syntax

Property Value

Type: string?

Remarks

Valid values are none, accordion, and card.

Groups

Gets or sets the groups for the menu item.

Syntax

Property Value

Type: System.Collections.Generic.List<Mintlify.Core.Models.GroupConfig>?

Hidden

Gets or sets whether the menu item is hidden by default.

Syntax

Property Value

Type: bool?

Href

Gets or sets the URL or path for the menu item.

Syntax

Property Value

Type: string?

Icon

Gets or sets the icon to be displayed for the menu item.

Syntax

Property Value

Type: Mintlify.Core.Models.IconConfig?

Item

Gets or sets the name of the menu item.

Syntax

Property Value

Type: string

Remarks

This is a required field that appears as the menu item label.

Pages

Gets or sets the pages for the menu item.

Syntax

Property Value

Type: System.Collections.Generic.List<object>?

Remarks

Pages can be strings (page paths) or nested GroupConfig objects.

Sdk

Gets or sets the SDK documentation artifact used to auto-populate pages.

Syntax

Property Value

Type: Mintlify.Core.Models.SdkRefConfig?

Thumbnail

Gets or sets thumbnail overrides for pages under this menu item.

Syntax

Property Value

Type: Mintlify.Core.Models.NavThumbnailConfig?

Methods

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

MemberwiseClone Inherited

Inherited from object

Syntax

Returns

Type: object

ReferenceEquals Inherited

Inherited from object

Syntax

Parameters

Returns

Type: bool

ToString Inherited Virtual

Inherited from object

Syntax

Returns

Type: string?