> ## Documentation Index
> Fetch the complete documentation index at: https://dotnetdocs.com/llms.txt
> Use this file to discover all available pages before exploring further.

# PrimaryNavigationConfig

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

## Definition

**Assembly:** Mintlify.Core.dll

**Namespace:** Mintlify.Core.Models

**Inheritance:** System.Object

## Syntax

```csharp theme={"dark"}
Mintlify.Core.Models.PrimaryNavigationConfig
```

## Summary

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

## Constructors

### <Icon icon="hammer" iconType="duotone" color="#419AC5" size={24} className="mr-2" /> .ctor

Initializes a new instance of the [PrimaryNavigationConfig](/api-reference/Mintlify/Core/Models/PrimaryNavigationConfig) class.

#### Syntax

```csharp theme={"dark"}
public PrimaryNavigationConfig()
```

### <Icon icon="hammer" iconType="duotone" color="#419AC5" size={24} className="mr-2" /> .ctor

Initializes a new instance of the [PrimaryNavigationConfig](/api-reference/Mintlify/Core/Models/PrimaryNavigationConfig) class for a button.

#### Syntax

```csharp theme={"dark"}
public PrimaryNavigationConfig(string label, string href)
```

#### Parameters

| Name    | Type     | Description          |
| ------- | -------- | -------------------- |
| `label` | `string` | The button label.    |
| `href`  | `string` | The button href URL. |

### <Icon icon="hammer" iconType="duotone" color="#419AC5" size={24} className="mr-2" /> .ctor

Initializes a new instance of the [PrimaryNavigationConfig](/api-reference/Mintlify/Core/Models/PrimaryNavigationConfig) class for GitHub.

#### Syntax

```csharp theme={"dark"}
public PrimaryNavigationConfig(string href)
```

#### Parameters

| Name   | Type     | Description     |
| ------ | -------- | --------------- |
| `href` | `string` | The GitHub URL. |

### <Icon icon="hammer" iconType="duotone" color="#419AC5" size={24} className="mr-2" /> .ctor <Badge color="gray">Inherited</Badge>

<Note>Inherited from `object`</Note>

#### Syntax

```csharp theme={"dark"}
public Object()
```

## Properties

### <Icon icon="tag" iconType="duotone" color="#419AC5" size={24} className="mr-2" /> Href

Gets or sets the href URL for the navigation item.

#### Syntax

```csharp theme={"dark"}
public string Href { get; set; }
```

#### Property Value

Type: `string?`

### <Icon icon="tag" iconType="duotone" color="#419AC5" size={24} className="mr-2" /> Label

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

#### Syntax

```csharp theme={"dark"}
public string Label { get; set; }
```

#### Property Value

Type: `string?`

### <Icon icon="tag" iconType="duotone" color="#419AC5" size={24} className="mr-2" /> Type

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

#### Syntax

```csharp theme={"dark"}
public string Type { get; set; }
```

#### Property Value

Type: `string?`

## Methods

### <Icon icon="thumbtack" iconType="duotone" color="#419AC5" size={24} className="mr-2" /> Button

Creates a button-type navigation configuration.

#### Syntax

```csharp theme={"dark"}
public static Mintlify.Core.Models.PrimaryNavigationConfig Button(string label, string href)
```

#### Parameters

| Name    | Type     | Description          |
| ------- | -------- | -------------------- |
| `label` | `string` | The button label.    |
| `href`  | `string` | The button href URL. |

#### Returns

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

### <Icon icon="code-fork" iconType="duotone" color="#419AC5" size={24} className="mr-2" /> Equals <Badge color="gray">Inherited</Badge> <Badge color="orange">Virtual</Badge>

<Note>Inherited from `object`</Note>

#### Syntax

```csharp theme={"dark"}
public virtual bool Equals(object obj)
```

#### Parameters

| Name  | Type      | Description |
| ----- | --------- | ----------- |
| `obj` | `object?` | -           |

#### Returns

Type: `bool`

### <Icon icon="thumbtack" iconType="duotone" color="#419AC5" size={24} className="mr-2" /> Equals <Badge color="gray">Inherited</Badge>

<Note>Inherited from `object`</Note>

#### Syntax

```csharp theme={"dark"}
public static bool Equals(object objA, object objB)
```

#### Parameters

| Name   | Type      | Description |
| ------ | --------- | ----------- |
| `objA` | `object?` | -           |
| `objB` | `object?` | -           |

#### Returns

Type: `bool`

### <Icon icon="code-fork" iconType="duotone" color="#419AC5" size={24} className="mr-2" /> GetHashCode <Badge color="gray">Inherited</Badge> <Badge color="orange">Virtual</Badge>

<Note>Inherited from `object`</Note>

#### Syntax

```csharp theme={"dark"}
public virtual int GetHashCode()
```

#### Returns

Type: `int`

### <Icon icon="function" iconType="duotone" color="#419AC5" size={24} className="mr-2" /> GetType <Badge color="gray">Inherited</Badge>

<Note>Inherited from `object`</Note>

#### Syntax

```csharp theme={"dark"}
public System.Type GetType()
```

#### Returns

Type: `System.Type`

### <Icon icon="thumbtack" iconType="duotone" color="#419AC5" size={24} className="mr-2" /> GitHub

Creates a GitHub-type navigation configuration.

#### Syntax

```csharp theme={"dark"}
public static Mintlify.Core.Models.PrimaryNavigationConfig GitHub(string href)
```

#### Parameters

| Name   | Type     | Description     |
| ------ | -------- | --------------- |
| `href` | `string` | The GitHub URL. |

#### Returns

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

### <Icon icon="function" iconType="duotone" color="#419AC5" size={24} className="mr-2" /> MemberwiseClone <Badge color="gray">Inherited</Badge>

<Note>Inherited from `object`</Note>

#### Syntax

```csharp theme={"dark"}
protected internal object MemberwiseClone()
```

#### Returns

Type: `object`

### <Icon icon="thumbtack" iconType="duotone" color="#419AC5" size={24} className="mr-2" /> ReferenceEquals <Badge color="gray">Inherited</Badge>

<Note>Inherited from `object`</Note>

#### Syntax

```csharp theme={"dark"}
public static bool ReferenceEquals(object objA, object objB)
```

#### Parameters

| Name   | Type      | Description |
| ------ | --------- | ----------- |
| `objA` | `object?` | -           |
| `objB` | `object?` | -           |

#### Returns

Type: `bool`

### <Icon icon="code-merge" iconType="duotone" color="#419AC5" size={24} className="mr-2" /> ToString <Badge color="blue">Override</Badge>

Returns the string representation of the navigation configuration.

#### Syntax

```csharp theme={"dark"}
public override string ToString()
```

#### Returns

Type: `string`
The href URL or empty string.

### <Icon icon="code-fork" iconType="duotone" color="#419AC5" size={24} className="mr-2" /> ToString <Badge color="gray">Inherited</Badge> <Badge color="orange">Virtual</Badge>

<Note>Inherited from `object`</Note>

#### Syntax

```csharp theme={"dark"}
public virtual string ToString()
```

#### Returns

Type: `string?`
